Re: Cargo Cult Membership
- From: Walter Bushell <proto@xxxxxxxxx>
- Date: Wed, 05 Jul 2006 00:23:34 -0400
In article <pan.2006.07.04.20.56.47.199172@xxxxxxxxxxxxxxx>,
Mark Isaak <eciton_NOSPAM@xxxxxxxxxxxxxxx> wrote:
On Sun, 02 Jul 2006 13:38:56 -0700, rupert.morrish@xxxxxxxxx wrote:
Augray wrote:
On Sat, 1 Jul 2006 22:28:00 -0500, "bullpup" <bullpup@xxxxxxxxxxxxx>
wrote in <f3Hpg.28440$gv2.25415@xxxxxxxxxxxxxxxxxxxxxx> :
http://www.unexplained-mysteries.com/column.php?id=73181
I would suggest that this essay is, well, flawed. For instance, the
writer states that
Cargo Cult thinking is very much alive today, and particularly
susceptible to it are computer programmers.
However, his knowledge of programming seems suspect:
Those who write Cargo cult programs explain their useless code as
a way of working around a certain computer bug, whose origins
they know nothing about. A classic example are programmers who
think that using commenting code is good, and then produce every
line with comments such as "increment i by 1". The result is a
lot of bad, problematic computer coding that can screw up a lot
of things.
However, commenting code has no influence on the final program. The
comments are there to explain your programming rationale to yourself,
or any other programmer, five years from now when the code has to be
modified or debugged.
No, the author is correct. Useless comments, like:
// increment i by one
i++;
are a /symptom/ of cargo cult programming.
I think the worst example I saw was:
#define TWO 2
most likely from someone who had been told never to hard-code constants.
Followed by an update
#define TWO 3
--
"The power of the Executive to cast a man into prison without formulating any
charge known to the law, and particularly to deny him the judgement of his
peers, is in the highest degree odious and is the foundation of all totali-
tarian government whether Nazi or Communist." -- W. Churchill, Nov 21, 1943
.
- Follow-Ups:
- Re: Cargo Cult Membership
- From: Michael Siemon
- Re: Cargo Cult Membership
- References:
- Cargo Cult Membership
- From: bullpup
- Re: Cargo Cult Membership
- From: Augray
- Re: Cargo Cult Membership
- From: rupert.morrish@xxxxxxxxx
- Re: Cargo Cult Membership
- From: Mark Isaak
- Cargo Cult Membership
- Prev by Date: Re: classroom display
- Next by Date: Re: Ethical dilemma here.
- Previous by thread: Re: Cargo Cult Membership
- Next by thread: Re: Cargo Cult Membership
- Index(es):
Relevant Pages
|
Loading