YourDictionary

Dictionary Home » Computer Definitions » spaghetti code

spaghetti code - technical definition


Program code written without a coherent structure. The logic moves from routine to routine without returning to a base point, making it hard to follow. It implies excessive use of the GOTO instruction, which directs the computer to branch to another part of the program without a guarantee of returning.

In structured programming, functions are used, which are subroutines that guarantee a return to the instruction following the one that called it.


SPAGETI.GIF


Spaghetti Code

There are tons of spaghetti code lurking in the millions of applications that have been written over the years. Spaghetti code is often the result of being in a rush to fix something or change something.






Learn more about spaghetti code

spaghetti code

link/cite print suggestion box