Why not Goto?

Blitz3D Forums/Blitz3D Beginners Area/Why not Goto?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I look at the code now and wonder how the hell I ever got it to work.
And work so well at that! :o>

Anyway, gotos, gosubs and functions are all evil. You should all learn to use objects and methods instead.

It's the "science" of programming. You see there are these programmers who aren't happy at all. They have underpaid jobs debugging random code, and work 50 odd hours a week. To make themselves fell more important and raise their self-image they will occasionally publish a "programming doctrine" that everyone will follow for fear that no-one will ever want to debug their code or otherwise help them out without being yelled at like a little boy.

Most sane people fortunately realize that as long as you write the program in such a fashion that it's clear what's going on and well commented, nobody important gives a rats backside which commands you use to acheive the desired effect. If it does what it's supposed to and doesn't display random glitches and crashes then it's good code, regardless of how many gotos there are. In it.