[WEBINAR] Application Acceleration: Faster Performance for End Users

Spaghetti Code

Definition - What does Spaghetti Code mean?

Spaghetti code is a slang term used to refer to a tangled web of programming source code where control within a program jumps all over the place and is difficult to follow. Spaghetti code normally has a lot of GOTO statements and is common in old programs, which used such statements extensively.

The rise of more structured programming languages, like object-oriented programming languages, has reduced the prevalence of spaghetti code.

Techopedia explains Spaghetti Code

Old programming languages like BASIC, which featured GOTO statements, were highly susceptible to spaghetti code because programmers found it very convenient to direct control of the program from one area to another using the GOTO statements.

However, spaghetti code is dreaded by programming teams who are tasked to look into old programs because the program logic becomes very difficult to follow. Because it gives rise to complex code, the use of GOTO statements and spaghetti code is only convenient during the original development process.

The older a program gets which was written with spaghetti code, the more difficult it is for developers to follow, even the original developers.

Techopedia Deals

Connect with us

Techopedia on Linkedin
Techopedia on Linkedin
"Techopedia" on Twitter

Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join thousands of others with our weekly newsletter

Free Whitepaper: The Path to Hybrid Cloud
Free Whitepaper: The Path to Hybrid Cloud:
The Path to Hybrid Cloud: Intelligent Bursting To Amazon Web Services & Microsoft Azure
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.