Program code that is written in layers, each layer an independent module (subsystem) that interacts with the next layer (lasagna is made with layers of dough). The network protocol layers are an example of lasagna code (see OSI model). See spaghetti code and ravioli code.
(computing, rare) Computer program code characterized by several well-defined and separable layers forming a hierarchy of subsystems.
Origin of lasagna-code
After spaghetti code, and the layered construction of lasagna; coined by Joe Celko in 1982.