You know about spaghetti code. Code so confusing it looks like a bowl of spaghetti.
But have you heard of ravioli and lasagna code?
I don't know why we name bad practices after delicious Italian foods, but a recent conversation about splitting up a monolith inspired me to add another – minestrone software.
Spaghetti code – unstructured
— Swizec Teller (@Swizec) May 20, 2022
Ravioli code – too structured
Lasagna code – layered wrong
Adding Minestrone software – unclear domains pic.twitter.com/b0VZYl3RYn
Here's how different Italian foods capture bad software practices. Growing up next to Northern Italy, I have cooked all of these from scratch which makes me an expert 👨🍳
Spaghetti code
Spaghetti code is the easiest to spot. When you have to jump around to understand how something works, that's spaghetti code.
Commonly produced when you take clean code rules too seriously.
The easiest way to write unreadable code is by splitting your functionality across 20 clean small functions.

