[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Encouraging good comments Which language ?
- From: marbux <marbux@...>
- Date: Mon, 30 Jan 2012 14:23:55 -0800
As I see it, there are a lot of variables deserving of consideration
when deciding what level of detail code comments should have. E.g.,
Who is the audience and what are their skills? If you are writing code
examples for novices learning to program, you'll need to wrap an
entire book of comments around the code. At the other extreme, if
you're the only person who's ever going to touch the code, you have
absolute freedom to comment or not comment as you desire.
How counter-intuitive is a given block of code? If it's part of
spaghetti code with dozens of bug-fixes and work-arounds in it, others
who have to work with the same code would probably appreciate you
erring on the side of over-documentation.
-- Would metadata assist in finding your way back to the code if
someone needs to later? I do my development work on a system that has
Isys Desktop Search installed. I find that adding classifying metadata
in code comments an incredible aid in code recycling.
Undoubtedly there are other factors as well. But bottom line, I don't
think there is a one-size-fits-all answer to how prolific comments
should be.
Best regards,
Paul
- References:
- Encouraging good comments Which language ?, YES NOPE9
- Re: Encouraging good comments Which language ?, Rob Kendrick
- Re: Encouraging good comments Which language ?, HyperHacker
- Re: Encouraging good comments Which language ?, Axel Kittenberger
- Re: Encouraging good comments Which language ?, Petite Abeille
- Re: Encouraging good comments Which language ?, Axel Kittenberger
- Re: Encouraging good comments Which language ?, Petite Abeille
- Re: Encouraging good comments Which language ?, Axel Kittenberger
- Re: Encouraging good comments Which language ?, Petite Abeille
- Re: Encouraging good comments Which language ?, Axel Kittenberger
- Re: Encouraging good comments Which language ?, Petite Abeille
- Re: Encouraging good comments Which language ?, Max de Bayser
- Re: Encouraging good comments Which language ?, Petite Abeille
- Re: Encouraging good comments Which language ?, Max de Bayser
- Re: Encouraging good comments Which language ?, Petite Abeille