Lasagna Code

Why Trust Techopedia

What Does Lasagna Code Mean?

Lasagna code refers to a broad code design structure that uses several main layers of code to build a program. This is one of several pasta metaphors for code, along with the terms spaghetti code and ravioli code, which are often attributed to Texas database expert and code guru Joe Celko.

Advertisements

Techopedia Explains Lasagna Code

One common working definition of lasagna code is that it replaces a more scattered code methodology with one that is structured, and in some sense, unified. One criticism of lasagna code, though, is that since it tends to be monolithic, it can be hard to change one aspect of the greater program. However, fans of the lasagna code design see it as an improvement over spaghetti code, the original metaphor, where, for example, many goto statements in code can create complex sets of strings that may become tangled.

Like other “pasta theories,” lasagna code should be evaluated according to how it makes code efficient and accomplishes key goals for developers.

Advertisements

Related Terms

Margaret Rouse
Technology Specialist
Margaret Rouse
Technology Specialist

Margaret is an award-winning writer and educator known for her ability to explain complex technical topics to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles in the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret’s idea of ​​a fun day is to help IT and business professionals to learn to speak each other’s highly specialized languages.