From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11390f,4c42ac518eba0bbe X-Google-Attributes: gid11390f,public X-Google-Thread: 103376,4c42ac518eba0bbe X-Google-Attributes: gid103376,public X-Google-Thread: 109fba,4c42ac518eba0bbe X-Google-Attributes: gid109fba,public X-Google-Thread: 1014db,4c42ac518eba0bbe X-Google-Attributes: gid1014db,public From: firewind Subject: Re: Programming language vote - results Date: 1997/11/20 Message-ID: <6501ih$r1a@dfw-ixnews10.ix.netcom.com>#1/1 X-Deja-AN: 291099122 References: <343fbb5a.0@news.iprolink.ch> <34466EB4.3381@dynamite.com.au> <6275dt$agm$3@news.on> <344BCED0.2D51@dynamite.com.au> <62tpap$7gh$1@darla.visi.com> <3470EF6E.F74@lysator.liu.se> <64qsf0$ccc@dfw-ixnews11.ix.netcom.com> <01bcf4f4$8fdc2c60$0200000a@kld_mcs> Organization: Netcom X-NETCOM-Date: Wed Nov 19 6:51:29 PM CST 1997 Newsgroups: comp.lang.ada,comp.lang.apl,comp.lang.c,comp.lang.c++ Date: 1997-11-19T18:51:29-06:00 List-Id: Mike Smith wrote: > firewind wrote in article > <64qsf0$ccc@dfw-ixnews11.ix.netcom.com>... > > 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); > > } > > } > > > Yeah, and what's wrong with that? Nothing, obviously. > Looks good to me - better than the > logical expression. This is purely your opinion. Either are correct, and either can be understood with little or no effort. (BTW, it's -still- a logical expression; it's just two now.) > And in the first case, > if (!call_this) call_that(); > is also the better form. Incorrect. It is the form that conforms more to your way of thinking. > A good programmer writes code that even > less-skilled programmers can easily read and maintain. I hope even less-skilled programmers can understand the boolean operators. > Unless, of course, > the code you write will never need to be maintained or updated, in which > case it is probably of little consequence in the real world. > > some people's minds work. To insult these people by comparing them to > > fickle adolescents is simply out of line. > Okay, how about comparing them to snooty elitist "artists" or "craftsmen" > that are more interested in form than function? Someone more interested in 'form' would write more 'pretty looking' constructs, would they not? I am still insulted by your statement. I code the way I code. My code works. I frankly don't care whether or not you think my style is 'pretty.' Anything above 'it works' is nothing more than a matter of opinion. Period. I find it pretty arrogant for you to think your way is the One True Style of Coding, and that anyone who dares do differently is a 'snob' or an 'adolescent' or an 'elitist.' -- [- firewind -] [- email: firewind@metroid.dyn.ml.org (home), firewind@aurdev.com (work) -] [- "You're just jealous because the voices talk to -me-." -] [- Have a good day, and enjoy your C. -] [- (on a crusade of grumpiness where grumpiness is due) -]