(no title)
whyme
|
12 years ago
I'll suggest there's a missing ingredient here...I found I was able to eliminate many of my comments by asking myself if that someone whom might read my code would be better served with a unit test instead. I also found, however, that this needs to lead to an understanding that unit test are in fact a form of documentation and should be treated as such.
millstone|12 years ago
But why should you strive for the "ability to eliminate" comments? What is the advantage of having fewer comments?
whyme|12 years ago
Also, in many cases, having a both the unit test and the comment is a redundancy.