Re: Repetitive XML comments -- what's the point?
Noah Sham wrote:
Somewhere along the line, we've gone from documenting methods (XML
comments) to documenting within method bodies.
I don't use (or rarely use) comments *in* code. I document the methods
(the XML comments). It documents what they do, what parameters they
need, exceptions that may be thrown. It does *not* have to document
*how* it does it. In short: I document the interface. That's what's
important for me.
--
Willem van Rumpt
Noah Sham wrote:
Given the rarity of comments that I write in code, yes, effectively my code
is commentless.
>
The only time that I find comments in code useful is when I have to refactor
the 100 line procedure that is bug-laden, brittle and written by another
engineer.
>
is commentless.
>
The only time that I find comments in code useful is when I have to refactor
the 100 line procedure that is bug-laden, brittle and written by another
engineer.
>
comments) to documenting within method bodies.
I don't use (or rarely use) comments *in* code. I document the methods
(the XML comments). It documents what they do, what parameters they
need, exceptions that may be thrown. It does *not* have to document
*how* it does it. In short: I document the interface. That's what's
important for me.
--
Willem van Rumpt
Comment