4 ms·
It's a great point that, if there's some behavior worth capturing in a comment, you may also want to capture it in a unit test. But why should you strive for t
by millstone 13y ago
It's a great point that, if there's some behavior worth capturing in a comment, you may also want to capture it in a unit test.
But why should you strive for the "ability to eliminate" comments? What is the advantage of having fewer comments?
- whyme 13y agoI subscribe to the minimalism approach. i.e. I do my best to improve the signal to noise ratio (which is inline with the authors goal). Also, in many cases, having a both the unit test and the comment is a redundancy.