in reply to Re: Why no comments?
in thread Why no comments?
In your bullets, you make the following points:
Yes, but sometimes these notes should be kept separate as design documentation. Some of this can also be done by writing tests.
Here you are saying they have served their purpose already; you need another purpose to shove them into the code.
This is true, but it is could also true of the code itself. This can also be done with tests.
No, this is like having two compasses that don't agree. Well, if you're the author, it can work until tickling your memory doesn't help.
Expressing your intentions for some code can be more precisely done by tests.
Better done by testing.
Better done by testing.
Agreed.
What is being done and how it is being done is captured in the code; the mindset of a maintainer with the artifact of the code before him may not mirror that of the writer who sat down with no code in front of him.
May your comments not be so vague, :-) and testing will probably help with whatever this is :-).
Be well,
rir
|
|---|