Pasta Theory

What Does Pasta Theory Mean?

The pasta theory is a theory of programming. It is a common analogy for application development describing different programming structures as popular pasta dishes. Pasta theory highlights the shortcomings of the code. These analogies include spaghetti, lasagna and ravioli code.


Techopedia Explains Pasta Theory

The most widely used analogy for application development is spaghetti code, which shows the writing of unstructured procedures resulting in the code being difficult to understand and update.

Lasagna code is said to be a structurally written and layered program. The application is easy to read and has a layered structure. However, because of unpredictable interdependencies in segments of code, a lasagna program may be difficult to modify.

Easily modified and well written object-oriented programming (OOP) code is called ravioli code. The sauce is the layer of interfaces between different parts.

Much of programming work today is rewriting spaghetti or lasagna code into an OOP version with the same functionality. In some cases, the program is simply replaced by a brand new one.


Related Terms

Latest Buzzwords and Jargon Terms

Related Reading

Margaret Rouse

Margaret Rouse is an award-winning technical writer and teacher known for her ability to explain complex technical subjects to a non-technical, business audience. Over the past twenty years her explanations have appeared on TechTarget websites and she's been cited as an authority in articles by the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine and Discovery Magazine.Margaret's idea of a fun day is helping IT and business professionals learn to speak each other’s highly specialized languages. If you have a suggestion for a new definition or how to improve a technical explanation, please email Margaret or contact her…