Spaghetti 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.
[Jargon File]


Read Also:

  • Spaghetti inheritance

    [encountered among users of object-oriented languages that use inheritance, such as Smalltalk] A convoluted class-subclass graph, often resulting from carelessly deriving subclasses from other classes just for the sake of reusing their code. Coined in a (successful) attempt to discourage such practice, through guilt-by-association with spaghetti code. [Jargon File]

  • Spaghetti junction

    noun 1. an interchange, usually between motorways, in which there are a large number of underpasses and overpasses and intersecting roads used by a large volume of high-speed traffic noun a complex and multi-level junction of roads Word Origin as spaghetti strands would look

  • Spaghettini

    noun 1. pasta in the form of long thin strings

  • Spaghetti-squash

    noun 1. a variety of a widely cultivated squash, Cucurbita pepo, having edible flesh in the form of spaghettilike strands.

Disclaimer: Spaghetti code definition / meaning should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. All content on this website is for informational purposes only.