spaghetti code
- noun
- Jargon
- Developers often advise against creating spaghetti code to ensure easy readability and maintenance.
Examples
-
As a direct result of that, most WebForms apps are blobs of spaghetti code.
Blog text (2) -
Unfinished spaghetti code sold for 60 dollars on disc, where you need a day one patch to get the game working properly.
Blog text (20) -
WebForms, for example, did not force anyone to write blobs of spaghetti code, but it certainly encouraged it.
Blog text (2) -
Many older software projects suffer from spaghetti code, making them difficult to maintain.
-
Debugging spaghetti code can be a frustrating experience due to its tangled logic.
Synonyms
Computer code that is badly written and hard to read or fix
Code written quickly as a temporary fix that causes problems
How Structured
Surface Forms
Morphology
spaghetti + code
The phrase pairs the literal food 'spaghetti' (long, tangled strands) with 'code' (program instructions), so the intended metaphor — code that is tangled and poorly structured like spaghetti — is partially recoverable from the constituents. However, this is technical jargon relying on a metaphorical mapping that a B1 learner may not automatically apply without exposure to programming contexts, so the relation is only partially predictable.
Etymology
The term spaghetti code may come from the image of long, tangled spaghetti on a plate, where the noodles cross and make a big mess. That's why it describes computer code that is 'tangled', 'hard to read', and 'difficult to change'.