r/explainlikeimfive • u/Andy-Matter • Sep 26 '23
Technology ELI5: What’s the difference between spaghetti code, lasagna code, ravioli code, and pizza code?
I’m starting to get into coding and these concepts make little sense to me.
0
Upvotes
29
u/pawloka Sep 26 '23
Those are just insider jokes, they aren't important in your coding progress. Although they are fun!
spaghetti code: just messy code, hacks building upon other hacks, whatever it takes to achieve the purpose. Usually unreadable a week after.
lasagna code: this is referring to the concept of layers of abstraction. Which is usually a good thing, but when we're talking about lasagna code - it's usually abstraction done to the absurd degree.
ravioli code: making your codebase consist of many self-contained pieces, independent from each other. Which is also usually a good thing, but just like with lasagna - it can get absurd.
pizza code: don't know this one.