1. On goto
- Posted by "Wallace B. Riley" <wryly at MINDSPRING.COM> Sep 23, 1997
- 701 views
Hello again - Re Jiri Babor's comments on 'goto': I'm pleased to see that remark. "Conventional wisdom" says that 'goto' is to be avoided or even to be totally banished, because it causes "spaghetti code". It does nothing of the sort. "Spaghetti code" is the result of careless programming and of fast coding without thinking through the problem ahead of time. Carelessness may be easier when 'goto' is available, and the result harder to understand, but 'goto' is not the cause of carelessness. It just lets a programmer get away with being careless, at least for a while. Wally Riley wryly at mindspring.com
2. Re: On goto
- Posted by The Reaper <reaper at MAIL.AURACOM.COM> Sep 23, 1997
- 702 views
At 05:17 23/09/97 -0400, you wrote: >I'm pleased to see that remark. "Conventional wisdom" says that 'goto' is >to be avoided or even to be totally banished, because it causes "spaghetti >code". >It does nothing of the sort. "Spaghetti code" is the result of careless >programming and of fast coding without thinking through the problem ahead of >time. Carelessness may be easier when 'goto' is available, and the result >harder to understand, but 'goto' is not the cause of carelessness. It just >lets a programmer get away with being careless, at least for a while. That's true. The GOTO command was very useful, even in games, when dealing with text, cause you could treat GOTO numbers like pages (or screens), making it easy to access and very easy to understand. I know this from my QBasic Text Adventure days... sigh... =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= The Reaper (J. Lays) http://www.geocities.com/TimesSquare/Alley/4444/ reaper at auracom.com Check out my Euphoria Games page at: -= http://www.geocities.com/TimesSquare/Alley/4444/eugames.html ........................ . .. -||..........__...... "Some will live life . / ||......../-- \\.:::: Unwilling to ask why, . ..| ||...... / | |.::: And they will be forgotten, .| _-||.......|| / /.:::: After they die." ..| |..||...... -\_- \ |\-.::: .| |.[< \ .../ \.:: .||.|||\|\ | - - . \.:::: ...|.\|| | \ | | |.:::. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-