spaghetti code

spaghetti code definition - computer

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.






Computer Desktop Encyclopedia THIS DEFINITION IS FOR PERSONAL USE ONLY
All other reproduction is strictly prohibited without permission from the publisher.
Copyright © 1981-2009 by Computer Language Company Inc. All rights reserved.

Comments
Improve this definition.
Do you have more to add? Share your linguistic knowledge or observation.
/Register to save your comments.