comp.lang.ada
 help / color / mirror / Atom feed
From: anon@att.net
Subject: Re: Some exciting new trends in concurrency and software design
Date: Thu, 30 Jun 2011 16:52:29 +0000 (UTC)
Date: 2011-06-30T16:52:29+00:00	[thread overview]
Message-ID: <iui9kc$b4a$1@news.ett.com.ua> (raw)
In-Reply-To: wccoc1gpbba.fsf@shell01.TheWorld.com

Actually, choosing the right name for a variable is in some case 50% of 
the comments needed. That's is one point that a programmer can correctly 
choose.

I'm just tied of seeing a page of comments mostly dup of previous page for 
a single statement wrap in a conditional statement. One of many reasons 
that I dislike Ada and GNAT using conditional statement.


In <wccoc1gpbba.fsf@shell01.TheWorld.com>, Robert A Duff <bobduff@shell01.TheWorld.com> writes:
>anon@att.net writes:
>
>> Taking a weekend break may clear your head that may help solve the 
>> problem but it can also cause you to forget how you were solving that 
>> problem.
>>
>> Plus, back in the day, some of the profs would say "It might be the best 
>> code in the world, but without comments its a grade of zero." Because 
>> even the prof may not remember which problem your working on.
>
>Yes, indeed!  I find it extremely annoying when I have to read an entire
>screenful of code in order to puzzle out what this code is trying to
>accomplish, when a little comment would explain it.
>
>> And it only take a few comments.
>
>Under-commenting is far worse than over-commenting.  You shouldn't
>comment the obvious.  But the person writing the code is necessarily
>a poor judge of what's obvious -- that person just got done thinking
>carefully about it, so it all seems obvious, but it's mysterious to
>somebody else (or to the same person a week later).  So I say: err
>on the side of too many comments.
>
>- Bob




  reply	other threads:[~2011-06-30 16:52 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-20 10:49 Some exciting new trends in concurrency and software design jonathan
2011-06-20 14:40 ` Georg Bauhaus
2011-06-20 14:48   ` Georg Bauhaus
2011-06-20 23:56   ` jonathan
2011-06-21  9:36     ` steveh44
2011-06-21 13:04       ` Phil Clayton
2011-06-22  0:37       ` Shark8
2011-06-22  9:45       ` anon
2011-06-29 21:39         ` Robert A Duff
2011-06-30 16:52           ` anon [this message]
2011-07-01 18:31             ` Shark8
2011-06-23  9:59       ` Yannick Duchêne (Hibou57)
2011-06-23 10:25         ` Dmitry A. Kazakov
2011-06-23 10:57           ` Yannick Duchêne (Hibou57)
2011-06-23 12:20             ` Dmitry A. Kazakov
2011-06-23 22:17             ` Georg Bauhaus
2011-06-24  1:26               ` Phil Clayton
2011-06-24  1:34                 ` Yannick Duchêne (Hibou57)
2011-06-24 10:41                 ` Georg Bauhaus
2011-06-24  1:27               ` Yannick Duchêne (Hibou57)
2011-06-24 10:32                 ` Georg Bauhaus
2011-06-24 13:45                   ` Yannick Duchêne (Hibou57)
2011-06-21 12:19     ` Dmitry A. Kazakov
2011-06-21 12:14   ` Phil Clayton
2011-06-22  8:39   ` Oliver Kleinke
2011-06-23  2:48     ` Nasser M. Abbasi
2011-06-23  9:23   ` Yannick Duchêne (Hibou57)
2011-06-23 10:03     ` Nasser M. Abbasi
2011-06-23 11:07       ` Yannick Duchêne (Hibou57)
replies disabled

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