Go To Statement Considered Harmful
- From: "Judson McClendon" <judmc@xxxxxxxxxxxxx>
- Date: Tue, 4 Sep 2007 09:16:48 -0500
Just a little food for thought in the "goto" debate. I don't know how many of
you have actually done any formal study on such things, but below is a link
to a website where you can read Dijkstra's original letter "Go To Statement
Considered Harmful", with annotations (not all of which I agree with) and
other related material. You might find it interesting, though many of you seem
to be deeply entrenched from an emotional standpoint, rather than from an
intellectually defensible one. :-) Just remember why "goto" was targeted in
the first place: extensive statistics showed there was a very high *inverse*
correlation between the number of "goto" statements used and code quality.
Statistics showed that individual programmer productivity varied by as much
as *25 times*, and that it was the same programmers who produced the most
code and best code, and that they used few or no "goto's". But the worst
programmers produced much less code, much poorer code, and it tended
to be littered with "goto's". That wasn't pulled out of a hat by academics;
it was a very clear pattern shown by extensive statistical studies of real world
production programming projects. It was after those studies that "goto" was
given serious academic study, mostly to understand "why". The "what" was
already obvious. :-)
http://david.tribble.com/text/goto.html
--
Judson McClendon judmc@xxxxxxxxxxxxx (remove zero)
Sun Valley Systems http://sunvaley.com
"For God so loved the world that He gave His only begotten Son, that
whoever believes in Him should not perish but have everlasting life."
.
- Follow-Ups:
- Re: Go To Statement Considered Harmful
- From: R.Nicholson
- Re: Go To Statement Considered Harmful
- From: Happy Trails
- Re: Go To Statement Considered Harmful
- Prev by Date: Re: BBC BASIC for Windows version 5.70a released
- Next by Date: Re: BBC BASIC for Windows version 5.70a released
- Previous by thread: Should there be a similar contest for BASIC?
- Next by thread: Re: Go To Statement Considered Harmful
- Index(es):
Relevant Pages
|