Spaghetti code
Pejorative phrase for source code that has a complex and tangled control structure reminiscent of spaghetti
Spaghetti code is computer source code that encodes control flow that is convoluted, and therefore, hard to understand. Control statements direct program execution in ways that instead of having a quality of structure, resembles cooked spaghetti, twisted and tangled. The code tends to be hard to maintain.
Nº Q1047561 ★★
Uncommon · History
Spaghetti code
Pejorative phrase for source code that has a complex and tangled control structure reminiscent of spaghetti
Spaghetti code is computer source code that encodes control flow that is convoluted, and therefore, hard to understand. Control statements direct program execution in ways that instead of having a quality of structure, resembles cooked spaghetti, twisted and tangled. The code tends to be hard to maintain.
Last price
—
Floor price
—
7-day median
—
30-day sales
0
30-day range
—
In circulation
0
Price history
median
low – high
sales
No sales in this period
Show table
| Date | median | Low | High | sales |
|---|
Sales history
- Last sale
- —
- 30-day average
- —
- 30-day low
- —
- 30-day high
- —
- Sales 7d
- 0
- Sales 30d
- 0
No sales yet.
Anonymous sales: no buyer or seller shown. Figures count player-to-player sales only.
From Wikipedia
Spaghetti code is computer source code that encodes control flow that is convoluted, and therefore, hard to understand. Control statements direct program execution in ways that instead of having a quality of structure, resembles cooked spaghetti, twisted and tangled. The code tends to be hard to maintain. Since control flow logic encoded via the goto statement tends to lead to convoluted control flow, use of goto is often associated with a classification as spaghetti code. The practice of structured programming was envisioned to eliminate the need for and use of the goto statement as one way to avoid the production of spaghetti code. Ensuring the creation of high-quality software, instead of spaghetti code, often involves aspects such as using better tools, training developers and improving software development processes. Spaghetti code can also describe an anti-pattern in which object-oriented code is written in a procedural style, such as by creating classes whose methods are overly long and messy, or forsaking object-oriented concepts like polymorphism. The presence of this form of spaghetti code can significantly reduce the comprehensibility of a system.
Text: Wikipédia, CC BY-SA 4.0. · Image: BizRules.com (CC BY-SA 4.0) ·
Related cards
Control flow
Order in which individual statements, instructions or function calls of an imperative program are executed or evaluated
Nº Q868299 ★★
Facade pattern
Software design pattern that provides a simplified interface
Nº Q428170 ★★
Encapsulation (computer programming)
Language mechanism in programming languages that allows external code not to care about the internal workings of an object
Nº Q1305241 ★★★
G-code
Programming languages
Nº Q620464 ★★★
Git
Distributed version control system
Nº Q186055 ★★★★
Spaghetti strap
Thin straps for garment support worn over the shoulders, or by metonymy the garments incorporating them
Nº Q16990721 ★★★★