comp.lang.ada
 help / color / mirror / Atom feed
From: "Andy Knight" <KnighA@tetraworld.com>
Subject: Re: Programming language vote - results
Date: 1997/11/20
Date: 1997-11-20T00:00:00+00:00	[thread overview]
Message-ID: <880011903.1575.0.nnrp-03.c2d9cf02@news.demon.co.uk> (raw)
In-Reply-To: 64qsf0$ccc@dfw-ixnews11.ix.netcom.com


Your credibility is brought in to question when you present code that has
been "snipped directly from code..." that can not possibly compile. Then you
expand this codswallop into its supposed "verbose" form into something which
is equally nonsensical.

I'm off to adjust my filters.

firewind wrote in message <64qsf0$ccc@dfw-ixnews11.ix.netcom.com>...
>Ingemar Ragnemalm <ingemar@lysator.liu.se> wrote:
>> Peter Seebach wrote:
>> > Can you honestly point to anyone claiming that "impenetrable" is a
>> > sign of superiority out of the IOCCC?
>
>> There are plenty of people who use C since it is "cool", but just can't
>> say what is so cool with it. It is cool because Mom can't understand it.
>> No, they won't say that.
>
>So, you insult a great many professional C programmers, and hobbyists, et
>cetra by comparing them to an adolescent who just follows the crowd? The
>crowd is gaping at OOP at the moment. C is not OOP.
>
>> You can identify that kind of people by the
>> lack of comments in the code. They *want* it that way - and they are
>> many!
>
>I very seldom comment my code at the first writing. I prefer to just code
>and get it done, then go back later and add comments, but -only- to
>code which is not easily understood.
>
>> > Efficient is good.  Tight can be good.  Impenetrable is generally not
>> > good.
>
>> When "efficient" and "tight" means as few keystrokes as possible, it
>> isn't good.
>
>Why not? You are associating 'few keystrokes' with 'unintelligible' and
>'brokenly using bad self-optimization techniques' which is not correct.
>
>> Efficient C code usually means that you take
>> responsabilities
>> that the optimizer should really do for you, and do that through
>> questionable backdoors in the language. Case switches jumping into
>> while loops is one example.
>
>'Questionable backdoors'? Some might disagree. BTW, last time I checked,
>the C standard didn't garuntee there is an optimizer around to babysit you.
>
>> > I disagree with at least the implications of your conclusion.  Writing,
>> > on purpose, impenetrable, bad, inefficient, and ugly code is one of the
>> > best ways to comprehend good code better.  It's all well and good to
say
>> > "look, here's a good way to do this".  It's just as good to say "and
look,
>> > here's a bad way".
>
>> > You can't understand fully what makes good code good without
understanding
>> > just as fully what makes bad code bad.
>
>> When you show the bad way to those kids, they think it is WAAAY cool!
>> They will use any stinking obscure construction just because "it is
>> valid C code".
>
>Again this insulting analogy.
>
>> Simple example from real life:
>
>> if (call_this() || call_that());
>
>> Valid, yes. Better than
>
>> if (!call_this()) call_that();
>
>> or more clear forms in other languages?
>> Some people actually think so.
>
>I find myself using a construct like this a lot recently (snipped directly
>from code I'm working on right now):
>
>if(!to && !(to = malloc(sizeof *to)))) return(NULL);
>
>For 'verbose' code this would be written:
>
>if(!to) {
> if(!to = malloc(sizeof *to)) {
> return(NULL);
> }
>}
>
>I find this unacceptable. The first form is understood well enough anyway:
>If 'to' is not valid and an attempt to make 'to' valid fails, return an
error.
>
>The
>
>if(foo() || bar())
>
>construct may seem obfuscated and weird to you, it is the way the logic of
>some people's minds work. To insult these people by comparing them to
>fickle adolescents is simply out of line.
>
>--
>[-
wind                                   -]
>[-   email: firewind@metroid.dyn.ml.org (home), firewind@aurdev.com
work)  -]
>[-          "You're just jealous because the voices talk
          -]
>[-                   Have a good day, and enjoy your
   -]
>[-          (on a crusade of grumpiness where grumpiness is
     -]






  parent reply	other threads:[~1997-11-20  0:00 UTC|newest]

Thread overview: 147+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <343fbb5a.0@news.iprolink.ch>
1997-10-11  0:00 ` Programming language vote - results Gary L. Scott
1997-10-12  0:00   ` Jack Rudd
1997-10-13  0:00     ` Robert Munck
1997-10-13  0:00       ` Jack Rudd
1997-10-13  0:00       ` Gary L. Scott
1997-10-13  0:00     ` safetran
1997-10-13  0:00       ` FRS DES
1997-10-13  0:00       ` Jack Rudd
1997-10-14  0:00         ` Philip Brashear
1997-10-14  0:00           ` Gary L. Scott
1997-10-13  0:00     ` Gary L. Scott
     [not found]     ` <3442B745.5352@lmco.com>
1997-10-15  0:00       ` Gary L. Scott
1997-10-16  0:00       ` James Giles
1997-10-16  0:00         ` Andrew Haley
1997-10-13  0:00   ` David Ness
1997-10-14  0:00     ` Randy MacDonald
1997-10-14  0:00     ` Jan Karman
1997-10-15  0:00       ` Alan E & Carmel J Brain
1997-10-15  0:00         ` D'Arcy J.M. Cain
1997-10-15  0:00           ` FRS DES
1997-10-15  0:00           ` Mark Stephen
1997-10-17  0:00             ` Randy MacDonald
1997-10-16  0:00           ` Alan E & Carmel J Brain
1997-10-16  0:00             ` FRS DES
1997-10-17  0:00               ` Jerry van Dijk
1997-10-16  0:00             ` John Sullivan
1997-10-17  0:00               ` Alan E & Carmel J Brain
1997-10-17  0:00                 ` John Sullivan
1997-10-17  0:00               ` Randy MacDonald
1997-10-17  0:00             ` Randy MacDonald
1997-10-20  0:00               ` Alan E & Carmel J Brain
1997-10-20  0:00                 ` FRS DES
1997-10-21  0:00                   ` Alan E & Carmel J Brain
1997-10-20  0:00                 ` Lawrence Kirby
1997-10-20  0:00                   ` Kaz
1997-10-21  0:00                     ` Alan E & Carmel J Brain
1997-10-23  0:00                     ` Ada Readability (Re: Programming language vote - results) Ray Blaak
1997-10-21  0:00                   ` Programming language vote - results Alan E & Carmel J Brain
1997-10-21  0:00                 ` Randy MacDonald
1997-10-22  0:00                   ` Don Guinn
1997-10-29  0:00                     ` Randy MacDonald
     [not found]                     ` <01bce1bf$5c2baaa0$95b66bcf@dkelly.ark.com>
1997-10-29  0:00                       ` Don Guinn
1997-10-29  0:00                         ` Shmuel (Seymour J.) Metz
1997-10-31  0:00                         ` Documenting Code (was:Programming language vote - results) Alan E & Carmel J Brain
1997-10-30  0:00                           ` Charles Lin
1997-10-30  0:00                             ` James L. Ryan
1997-10-31  0:00                               ` Robert Bernecky
1997-10-31  0:00                             ` Robert Bernecky
1997-11-01  0:00                           ` Randy MacDonald
1997-11-01  0:00                             ` Robert Dewar
1997-11-03  0:00                               ` Jon S Anthony
1997-10-29  0:00                       ` Programming language vote - results FRS DES
1997-10-25  0:00                   ` Alan E & Carmel J Brain
1997-10-26  0:00                     ` functionality of Java (was Re: Programming language vote - results) Randy MacDonald
1997-10-23  0:00                 ` Programming language vote - results Jack Rudd
1997-10-25  0:00                   ` Alan E & Carmel J Brain
1997-10-25  0:00                     ` Kaz
1997-10-26  0:00                       ` FRS DES
1997-10-27  0:00                       ` Robert Bernecky
1997-10-27  0:00                         ` APL argument W. Wesley Groleau x4923
1997-10-28  0:00                           ` Randy MacDonald
1997-10-28  0:00                         ` Programming language vote - results Jan Karman
1997-10-28  0:00                           ` Robert Bernecky
1997-10-28  0:00                             ` James L. Ryan
1997-10-29  0:00                               ` Robert Bernecky
     [not found]                                 ` <bosworth-2910972044300001@access59.accsyst.com>
1997-10-30  0:00                                   ` Robert Bernecky
1997-10-30  0:00                                     ` James L. Ryan
1997-10-31  0:00                                       ` Robert Bernecky
1997-10-31  0:00                                         ` James L. Ryan
1997-10-29  0:00                     ` Jack Rudd
1997-10-25  0:00                 ` Peter Seebach
1997-11-18  0:00                   ` Ingemar Ragnemalm
1997-11-18  0:00                     ` Lawrence Kirby
1997-11-24  0:00                       ` Martin M Dowie
1997-11-25  0:00                         ` Kaz Kylheku
1997-11-26  0:00                           ` Peter Seebach
1997-12-02  0:00                           ` ANDREAS LEITNER
1997-12-02  0:00                             ` Robert Dewar
1997-12-02  0:00                             ` Lawrence Kirby
1997-12-03  0:00                               ` Billy Chambless
1997-12-03  0:00                                 ` Robert Dewar
1997-12-05  0:00                             ` John Sullivan
1997-11-25  0:00                         ` Mark Wilden
1997-11-25  0:00                           ` Martin M Dowie
1997-11-26  0:00                             ` Lawrence Kirby
1997-11-26  0:00                           ` FRS DES
1997-11-18  0:00                     ` Kevin Swan
1997-11-29  0:00                       ` Ingemar Ragnemalm
1998-09-10  0:00                         ` Steven Katz
1997-11-18  0:00                     ` firewind
1997-11-18  0:00                       ` Kevin Swan
1997-11-19  0:00                         ` Alan E & Carmel J Brain
1997-11-18  0:00                       ` Larry Elmore
1997-11-20  0:00                         ` firewind
1997-11-19  0:00                       ` Mike Smith
1997-11-19  0:00                         ` Matt
1997-11-20  0:00                         ` firewind
     [not found]                           ` <3474C71B.536B12F6@cgocable.net>
1997-11-21  0:00                             ` CVigue
1997-11-23  0:00                           ` Lawrence Kirby
1997-11-24  0:00                             ` FRS DES
1997-11-20  0:00                       ` Terry Richards
1997-11-20  0:00                         ` Andy Knight
1997-11-23  0:00                         ` Alex Krol
1997-11-25  0:00                         ` William Tanksley
1997-11-26  0:00                           ` Ron Natalie
1997-11-27  0:00                             ` William Tanksley
1997-11-27  0:00                               ` Lawrence Kirby
     [not found]                                 ` <65keij$mkd$1@nerd.apk.net>
1997-11-27  0:00                                   ` Kaz Kylheku
1997-11-28  0:00                               ` Shmuel (Seymour J.) Metz
1997-12-01  0:00                                 ` FRS DES
1997-11-20  0:00                       ` Andy Knight [this message]
1997-11-20  0:00                         ` firewind
1997-11-20  0:00                       ` Coding for Obscurity Alan E & Carmel J Brain
1997-11-20  0:00                         ` Stephan Wilms
1997-11-21  0:00                           ` Jos A. Horsmeier
1997-11-23  0:00                           ` Al Christians
1997-11-23  0:00                           ` Alex Krol
1997-11-24  0:00                             ` Jim Johnson
1997-11-24  0:00                               ` Mark Wilden
1997-11-26  0:00                                 ` Robert S. White
1997-11-26  0:00                                   ` Miguel Carrasquer Vidal
1997-12-01  0:00                                     ` ISONE
1997-12-01  0:00                                     ` ISONE
1997-11-26  0:00                                   ` Mark Wilden
1997-11-26  0:00                                   ` Leon Jones
1997-11-26  0:00                                     ` Lawrence Kirby
1997-11-26  0:00                                     ` Ron Natalie
1997-11-27  0:00                                       ` Joerg Rodemann
1997-11-27  0:00                                   ` Richard A. O'Keefe
1997-11-24  0:00                           ` Richard A. O'Keefe
1997-11-24  0:00                             ` Samuel T. Harris
1997-11-24  0:00                               ` Jon S Anthony
1997-11-25  0:00                                 ` Samuel T. Harris
1997-11-24  0:00                             ` Matt
1997-11-24  0:00                               ` Ed Falis
1997-11-20  0:00                         ` firewind
1997-11-20  0:00                           ` Jos A. Horsmeier
1997-11-19  0:00                     ` Programming language vote - results Alan E & Carmel J Brain
1997-11-19  0:00                     ` Peter Seebach
1997-10-16  0:00           ` Randy MacDonald
     [not found]           ` <01bcdad2$fa9fdf60$25a43a91@basil.omroep.nl>
1997-10-17  0:00             ` D'Arcy J.M. Cain
1997-10-17  0:00         ` Robert I. Eachus
1997-10-13  0:00   ` Robert S. White
1997-10-13  0:00     ` Gary L. Scott
1997-10-13  0:00   ` Matthew Heaney
1997-10-14  0:00     ` Gary L. Scott
1997-10-19  0:00 ` William Rapp
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox