In article <20070816170008.A23986 at homer.berkhirt.com>,
Jim Leonard <trixter at oldskool.org> writes:
But saying "GOTOS = Spaghetti code" is also
wrong. Spaghetti Code is any
code that is "hard to follow", ie. the execution thread (and the meaning
behind it) is obtuse and difficult to understand. It has nothing to do
with what language is being used. It's possible to write spaghetti
code in any language, really.
FRACTINT has shitloads of spaghetti code. A lot of it is created with
nested if-then-else constructs. Its not the construct per se that is
bad, its when you let complex conditions and alternatives wind on for
many pages, all selecting each other through global variables and
magic numbers. That's what can make deeply nested if-then-else or
many instances of if-then-else be as confusing as trying to visually
trace back spaghetti on your plate.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://www.xmission.com/~legalize/book/download/index.html>
Legalize Adulthood! <http://blogs.xmission.com/legalize/>