HP3000-L Archives

March 2004, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
John Clogg <[log in to unmask]>
Reply To:
John Clogg <[log in to unmask]>
Date:
Fri, 12 Mar 2004 14:25:40 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (13 lines)
Mark Boyd wrote:
>How could you not follow it?  I've never used go to or perform thru and
>absolutely hates them.  I've always tried to write my apps such that a
>fourth grader could maintain them...

Mark,
I'm sure your programs would serve as an excellent example of what we are talking about: they are easy to follow and understand, because you have carefully structured them with that end in mind.  Avoidance of GOTOs is only one aspect of that discipline.  Good programming is so much more than simply eliminating GOTOs and THRUs.  It's not unusual for a programmer, especially an inexperienced one, to paint himself into a logical corner that could best be handled with a GOTO.  If that programmer works in a shop where he is forbidden to use a GOTO, he should backtrack and restructure the code to eliminate the need for the GOTO, but will probably just write some kind of confusing, ugly code to get him out of the hole he has dug.  To emphasize GOTOs as the source of all evil overlooks a lot of other important principals of good programming.

John Clogg

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2