spaghetti
n. · v.-
1 pasta (n.) A1 Beginner Cookinga type of pasta made in long, thin strings.
a variety of pasta shaped into long, thin, cylindrical strands.
ExampleWe had spaghetti with tomato sauce and meatballs for dinner last night.
ExampleThe chef insisted on cooking the spaghetti al dente to ensure it maintained a firm texture when tossed with the seafood sauce.
-
2 tangled mess (n.) B2 Upper Intermediate Informala messy or tangled collection of things, like wires or cables.
a tangled or disorganized collection of physical objects, typically cables or wires, resembling pasta.
ExampleThere is a spaghetti of cables behind the television that needs to be organized.
ExampleThe technician spent hours untangling the spaghetti of multicoloured wires hidden behind the server rack.
-
3 confusing code (n.) C1 Advanced Technical Informal Computingcomputer code that is messy and hard to understand because it is not organized well.
source code with a complex and tangled control structure, making it difficult to maintain or follow.
ExampleThe old software was full of spaghetti code that made it impossible to fix bugs.
ExampleThe legacy system was a nightmare to update because the original developers had relied on spaghetti code rather than modular design.
UsageOften used in the compound phrase 'spaghetti code'.
Teacher's tipThis is a common term in software engineering to describe poorly written programs that 'jump' around too much.
- spaghetti code
- clean code
- structured code
-
4 to tangle (v.) C2 Proficiency Informalto become twisted or tangled together.
to become or cause to become tangled or knotted in a manner resembling pasta.
ExampleThe fishing lines started to spaghetti after the wind picked up.
ExampleIf you don't store these headphones properly, the thin wires will spaghetti inside your pocket.
- untangle
- unravel
The noun is borrowed from Italian spaghetti, the plural of spaghetto (“dish of spaghetti; (rare) strand of spaghetti”), from spago (“cord, string, twine; thread”) + -etto (diminutive suffix). Spago is derived from Latin spagus (“twine”), probably from Ancient Greek σφάκος (sphákos, “apple sage (Salvia pomifera)”), probably from Pre-Greek. The verb is derived from the noun.
Etymology adapted from Wiktionary, available under CC BY-SA 4.0.
Last updated June 20, 2026