Pasta Theory

Why Trust Techopedia

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.

Advertisements

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.

Advertisements

Related Terms

Margaret Rouse
Technology expert
Margaret Rouse
Technology expert

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.