home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!fstop.csc.ti.com!pioneer!fcw
- From: fcw@telecom.ti.com (Fred Wedemeier)
- Subject: Re: Freedom of Speech (was: Mister Ed Nilg
- Message-ID: <1992Aug28.210545.11554@csc.ti.com>
- Sender: usenet@csc.ti.com
- Nntp-Posting-Host: pioneer
- Reply-To: fcw@telecom.ti.com
- Organization: TI Telecom Systems, Dallas
- References: <1992Aug27.212216.18631@Princeton.EDU>
- Date: Fri, 28 Aug 1992 21:05:45 GMT
- Lines: 39
-
- In article 18631@Princeton.EDU, egnilges@phoenix.Princeton.EDU (Ed Nilges) writes:
- > In article <BtnLup.Irz@NCoast.ORG> cmort@ncoast.org (Christopher Morton) writes:
- > >
- > >Your algorithm works out to:
- > >
- > >if(!(totalitarian_system)
- > > {
- > > piss;
- > > moan;
- > > whine;
- > > cry;
- > > }
-
- > > {flame} there's a
- > > stupid blunder in the above pseudo-C code. Can you spot it? {flame}
-
- >
- > Give up? The error, of course, is an unbalanced set of parentheses on
- > the first line. The second left parenthesis, behind the ! "not" symbol,
- > is not needed, but incompetent programmers often overuse parentheses
- > {flame}
-
- You're right, of course, that parens may not be required when
- precedence rules are applied to expressions. The next person reading
- the code might not have a thorough-enough knowledge of these rules to
- immediately understand exactly what the expression means. In
- non-obvious cases, I expend maybe 0.2 seconds to put a () pair in an
- expression, to perhaps save the next person from grief by
- misinterpreting what I've written. I appreciate it when other
- programmers return the favor, as long as they don't go overboard. If
- you're writing product-quality software, making it work is only part of
- the job. Making its source code readily understandable (i.e. part of
- making it maintainable) is another. Bytes on a disk are cheap -
- programming labor ain't.
-
- ---
- Fred Wedemeier pho: 214-997-3213 fax: 214-997-3639
- timsg: fcw inet: fcw@pioneer.telecom.ti.com
-
-