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.