Encyclopedia > Spaghetti code

  Article Content

Spaghetti code

Spaghetti code is a pejorative term for code with a complex and tangled control structure, especially one using many GOTOs, exceptions, or other "unstructured" branching constructs. It is named after spaghetti because a diagram of program flow tends to look like that. Nowadays it is preferable to use so-called structured programming.

Also called kangaroo code because such code has so many jumps in it.


This article (or an earlier version of it) contains material from FOLDOC, used with permission.



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
East Marion, New York

... size is 2.79. In the town the population is spread out with 18.5% under the age of 18, 4.4% from 18 to 24, 20.6% from 25 to 44, 26.3% from 45 to 64, and 30.2% who are ...

 
 
 
This page was created in 156.3 ms