News for hackers. Stuff that matters.
Re:Why Most Unit Testing is Waste [pdf] by VBprogrammer on Thursday March 06, 2014 @02:34PM (#7356031)
I find when I have to re-factor code around the tests it means the code wasn't very good in the first place.

The author complains about re-factoring code into smaller testable functions. I completely disagree. Code structured as small easily understood functions which do one thing and have obvious inputs and outputs is good code which is much easier to extend and modify.

Re:Why Most Unit Testing is Waste [pdf] by emn13 on Friday March 07, 2014 @05:15AM (#7359441)
Yeah, that's one of the article's weaker spots. But as a rule, I'd tend to interpret imprecise statements like that charitably. He's not saying that small, clear functions are bad, but that splitting functions for the purposes of testing is counterproductive. He's not saying anything about splitting for clarity and focus.