4 ms·
Testable documentation - or, as it's more commonly known, unit testing - is of course a very good idea, and a better replacement for comments.
by lmm 13y ago
Testable documentation - or, as it's more commonly known, unit testing - is of course a very good idea, and a better replacement for comments.
- dllthomas 13y agoRelated, for sure. I think for it to be considered testable comments it would have to 1) be inline, 2) be brief enough to be easily readable in the context of a comment, and 3) be aimed at documenting the kinds of things good comments are aimed at documenting. All of these are occasionally aspects of unit tests, but there are plenty of things that are unit tests and are probably a good idea that are not all three of these.