PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.c > Re: Goto still considered ful
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Re: Goto still considered ful

Réponse
 
LinkBack Outils de la discussion
Vieux 19/10/2007, 10h43   #1
James Dow Allen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Goto still considered ful

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


  Réponse avec citation
Vieux 19/10/2007, 11h46   #2
Keith Thompson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Goto still considered ful

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"
  Réponse avec citation
Vieux 19/10/2007, 17h24   #3
Joachim Schmitz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Goto still considered ful

"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


  Réponse avec citation
Vieux 19/10/2007, 22h01   #4
Peter Pichler
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Goto still considered ful

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?
  Réponse avec citation
Vieux 20/10/2007, 10h22   #5
Joachim Schmitz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Goto still considered ful

"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


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 04h20.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14433 seconds with 13 queries