comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Some exciting new trends in concurrency and software design
Date: Wed, 29 Jun 2011 17:39:05 -0400
Date: 2011-06-29T17:39:05-04:00	[thread overview]
Message-ID: <wccoc1gpbba.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: itsdjk$b40$1@speranza.aioe.org

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-29 21:39 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 [this message]
2011-06-30 16:52           ` anon
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