News for hackers. Stuff that matters.
Re:Unit Testing: Is There Really Any Debate Any Longer? by torus on Wednesday September 12, 2012 @10:17AM (#4510759)
One way to look at it is that optimising for testing is optimising for correctness
Re:Unit Testing: Is There Really Any Debate Any Longer? by romaniv on Wednesday September 12, 2012 @11:46AM (#4511185)
Not 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.

Re:Unit Testing: Is There Really Any Debate Any Longer? by torus on Saturday September 15, 2012 @04:47AM (#4525712)
I agree with what you said about "end user" code actually. I guess I am really arguing in favour of testing, not specifically unit-testing.