The Jargon File (version 4.4.7, 29 Dec 2003):
spaghetti code
n.
Code with a complex and tangled control structure, esp. one using many
GOTOs, exceptions, or other ?unstructured? branching constructs.
Pejorative. The synonym kangaroo code has been reported, doubtless because
such code has so many jumps in it.
The Free On-line Dictionary of Computing (30 December 2018):
spaghetti code
kangaroo code
A pejorative term for code with a complex and
tangled control structure, especially one using many
GOTOs, exceptions, or other "unstructured" branching
constructs. The synonym "kangaroo code" has been reported,
doubtless because such code has so many jumps in it.
Object-oriented programming may also feature spaghetti
inheritance or spaghetti with meatballs code.
[Jargon File]
(2013-07-31)