What is Spaghetti Code?
As Yan mentioned, an old friend once said, “Spaghetti is best served on your plate, not in your code.”
Take a look at this program:
‘ Shows you how Goto statements can create spaghetti code
TextWindow.Write(“This is “)
This is an example of spaghetti code.
As you can see, it’s hard to track the flow of this program. Like spaghetti, this program’s a tangled mess! Try to trace through the program to see how it works!
Do you have any questions? Ask us! We’re full of answers and other fine things!
Head to the Small Basic forum to get the most answers to your questions:
And go to http://blogs.msdn.com/SmallBasic to download Small Basic and learn all about it!
Small and Basically yours,
– Ninja Ed & Majed Marji