spaghetti code

Unmaintainable software mess

Spaghetti code is computer code that's tangled and difficult to follow—like a plate of intertwined pasta.

The term describes programs with convoluted logic, excessive jumps between sections, or poor structure that makes understanding and maintaining the code a nightmare: I inherited this spaghetti code and can't figure out what anything does.

The opposite is clean, well-organized code.

tangled

tangled

Twisted confusedly together

enmeshed · labyrinthine · convoluted · twisted · snarled · nested · interdependent · coupled · entwined · branching

antipattern

kludge

Awkward but functional solution

duct tape · magic numbers · copy-paste · quick fix · bodge · shortcut · hotfix

disorganized

unstructured

Lacking imposed order

scattered · random · patchwork · inconsistent · ad hoc · misnamed · sloppy · careless · slipshod · disarray

unreadable

cryptic

Obscure in meaning

opaque · inscrutable · obfuscated · unclear · confusing · illegible · unintelligible · undocumented · uncommented · gibberish

unmaintainable

brittle

Liable to shatter

hardcoded · monolithic · rigid · inflexible · unscalable · side effects · regression · breakage · unfixable · irreparable

Categories
Opposites
code structure and organization

spaghetti codeclean code

Well-organized, maintainable programming

software quality and craftsmanship

spaghetti codebest practices

Proven effective methods

Family

code, codify, coded, spaghetti, codes, coding, coder, decoding, encode

Familiarity
Top 500,000
Profile
Used worldwide · Timeless · Abstract · Negative · Rated G