|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
On Oct 5, 5:48 am, Army1987 <army1...@NOSPAM.it> wrote:
> On Fri, 05 Oct 2007 02:18:31 -0700, James Dow Allen wrote: > > http://james.fabpedigree.com/gotoalt.htm > > I do hope readers will indicate which version > > is "more readable." > > Most often there is a better alternative. I fail to see a good > alternative in the code on that page, but maybe that's just > because I'm not in good shape today. This thread has generated several posts on a simple goto which can be replaced simply, but only one comment about the more interesting goto. Come on, don't be shy! Counting previous posts, I've received about 12 responses on this code. Perhaps Army1987's unusually tepid response counts as favorable. I'm grateful to Tim, the *only* one who's ever taken the trouble to produce a goto-free version. The other responses I've received divide equally into two categories. Half the responses, paraphrased, were: > replace the common code with a function call [or > some other response proving that respondent was > too lazy or incompetent to grok the program at all] The other half had the form: > fixing your ugly code would be a minute's child > play but I'm too busy now [presumably busy > constructing a 99th diatribe about ignoramuses > who write "void main()" ?] Of course what I'd like to see :-) :-) is: > A special convocation of C experts declared today > that Jamie's GOTO is the most readable way to express > a bridge solving program. Cornelia Dijkstra made > a special appearance; she regretted that her grandfather > couldn't come to apologize to Mr. Allen in person. > Ms. Dijkstra has submitted a retraction to the ACM > Bulletin on her grandfather's behalf. But I'd be willing to live with (and indeed could then promise to never mention GOTO in this newsgroup again) a response like: > After careful objective scrutiny, 4 out of 5 c.l.c > experts agreed that Mr. Rentsch's submission was > more readable than Mr. Allen's. In the words of > long-time c.l.c guru Eric B. Keithfield: > > We tried to give the jerk the benefit of the doubt, > > but Geez Louise! A goto from one inner loop to > > another didn't even pass the laugh test. We advised > > Mr. Allen to rework his code and submit it to the > > Obfuscated C Contest. What I frankly find irritating are responses like > fixing your ugly code would be a minute's child > play but I'm too busy now.... > ... > ... [wait a few months, then post in another thread] > I've never come across > a good reason to use goto in "real" code). Keith Thompson wrote: > In addition, I think you're write; ... > Did I really write "write" instead of "right"? Sigh. Lately I write "their" for "there", "are" for "or" and even "haven't" for "having". Is there a name for this condition? I'm also losing my sense of smell. How old are you, Keith? James Dow Allen |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
James Dow Allen <jdallen2000@yahoo.com> writes:
[...] > Keith Thompson wrote: >> In addition, I think you're write; ... >> Did I really write "write" instead of "right"? Sigh. > > Lately I write "their" for "there", "are" for "or" > and even "haven't" for "having". Is there a name for > this condition? I'm also losing my sense of smell. > > How old are you, Keith? Older than I've ever been. -- Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst> San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst> "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister" |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
"James Dow Allen" <jdallen2000@yahoo.com> schrieb im Newsbeitrag
news:1192787005.970636.153350@e9g2000prf.googlegro ups.com... > Keith Thompson wrote: >> In addition, I think you're write; ... >> Did I really write "write" instead of "right"? Sigh. > > Lately I write "their" for "there", "are" for "or" > and even "haven't" for "having". Is there a name for > this condition? I'm also losing my sense of smell. Alzheimers, or some other for of dementia? Esp. loosing sense of smell is an early symptom, and I'm not joking here... Bye, Jojo |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
Joachim Schmitz wrote:
> "James Dow Allen" <jdallen2000@yahoo.com> schrieb im Newsbeitrag > news:1192787005.970636.153350@e9g2000prf.googlegro ups.com... > >>Lately I write "their" for "there", "are" for "or" >>and even "haven't" for "having". Is there a name for >>this condition? I'm also losing my sense of smell. > > Alzheimers, or some other for of dementia? Esp. loosing sense of smell is an > early symptom, and I'm not joking here... Alzheimer? Isn't that the German guy who follows me around and hides things? |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
"Peter Pichler" <usenet@pichler.co.uk> schrieb im Newsbeitrag
news:47191b10$1_4@mk-nntp-2.news.uk.tiscali.com... > Joachim Schmitz wrote: > >> "James Dow Allen" <jdallen2000@yahoo.com> schrieb im Newsbeitrag >> news:1192787005.970636.153350@e9g2000prf.googlegro ups.com... >> >>>Lately I write "their" for "there", "are" for "or" >>>and even "haven't" for "having". Is there a name for >>>this condition? I'm also losing my sense of smell. >> >> Alzheimers, or some other for of dementia? Esp. loosing sense of smell is >> an early symptom, and I'm not joking here... > > Alzheimer? Isn't that the German guy who follows me around and hides > things? 8-) Yep, that's the guy, Alois Alzheimer http://en.wikipedia.org/wiki/Alois_Alzheimer |
|
![]() |
| Outils de la discussion | |
|
|