出典:Wiktionary
出典:『Wiktionary』 (2026/01/27 22:54 UTC 版)
spaghetti code (uncountable)
出典:Wikipedia
出典:『Wikipedia』 (2011/06/21 03:17 UTC 版)
Spaghetti code is a pejorative term for source code that has a complex and tangled control structure, especially one using many GOTOs, exceptions, threads, or other "unstructured" branching constructs. It is named such because program flow tends to look like a bowl of spaghetti, i.e. twisted and tangled. Spaghetti code can be caused by several factors, including inexperienced programmers and a complex program which has been continuously modified over a long life cycle. Structured programming greatly decreased the incidence of spaghetti code.