7 ms·
One way to look at it is that optimising for testing is optimising for correctness
by torus 14y ago
One way to look at it is that optimising for testing is optimising for correctness
- romaniv 14y agoNot always. The GP post is more insightful than it might appear. A lot of reasoning used for arguing in favor of adding more unit tests is circular. "Good code is unit testable, so unit testable code is good." Very often, optimizing certain kinds of code for unit testing makes it significantly more complicated, with none of that complexity helping you in the actual program. This is especially true for "end user" code, such as controllers.
- torus 14y agoI agree with what you said about "end user" code actually. I guess I am really arguing in favour of testing, not specifically unit-testing.