What is Spaghetti Code?

Mass of Confusing Code

“I just need to add this one thing for now.”

Spaghetti code is technical debt that has accrued within a code base from procrastinating proper refactoring and testing.

Spaghetti Code Kills

In the case of Toyota, a NASA engineer demonstrated that “spaghetti code” had killed those whose accelerator pedals got stuck.