You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Noel J. Bergman" <no...@devtech.com> on 2004/12/12 16:18:21 UTC

Commenting code

Alex wrote:

> I fixed this in the following revision:
> http://svn.apache.org/viewcvs?view=rev&rev=111644

One thing I am noticing, just as an example, is that when fixes are put into
the repository, we have a decent description of the fix in the commit log,
but comments are relatively sparse.

My general comment is that I'm not seeing code commented as if some other
programmer would have to work on it.  Yes, tend to have a description of
each method, and usually something on branch points, but I comments are
explanations to some other programmer (as well as reminders to ourselves
some months or years later) as to what the code is doing and why it is
important.

This observation is certainly not limited to this project, but reading
through recent commits inspired me to prod everyone to comment code.

	--- Noel


Re: Commenting code

Posted by Mark Swanson <ma...@ScheduleWorld.com>.
On December 12, 2004 3:45 pm, Alex Karasulu wrote:
> usually have bullet points of all the changes.  Plus that machine is now
> dead and I had to get the commit though before it completely died.
> Actually this is a good time also to let you guys know that I will be
> somewhat hard to obtain until I can rebuild that box.

Sorry to hear that Alex. Hope you're able to rebuild it soon.

-- 
Free SyncML-capable J2ME & J2SE replacement for Exchange and Outlook
http://www.ScheduleWorld.com/
WAP: http://www.ScheduleWorld.com/sw/WAPToday?id=4000&tz=EST
WebDAV: http://www.ScheduleWorld.com/sw/webDAVDir/4000.ics
VFREEBUSY: http://www.ScheduleWorld.com/sw/freebusy/4000.ifb

Re: Commenting code

Posted by Alex Karasulu <ao...@bellsouth.net>.
Noel J. Bergman wrote:

>Alex wrote:
>
>  
>
>>I fixed this in the following revision:
>>http://svn.apache.org/viewcvs?view=rev&rev=111644
>>    
>>
>
>One thing I am noticing, just as an example, is that when fixes are put into
>the repository, we have a decent description of the fix in the commit log,
>but comments are relatively sparse.
>  
>
Yeah will do this is generally not what I do but it was realy late.  I 
usually have bullet points of all the changes.  Plus that machine is now 
dead and I had to get the commit though before it completely died.  
Actually this is a good time also to let you guys know that I will be 
somewhat hard to obtain until I can rebuild that box.

Alex