News for hackers. Stuff that matters.
Re:Test Isolation Is About Avoiding Mocks by jrochkind1 on Thursday May 15, 2014 @05:05PM (#7752234)
There is no panacea to writing good code. Whatever principle you come up with, you can still write bad code that outwardly seems to be motivated by that principle.

I firmly believe that writing good code is a craft. I agree with you that 'the right size', and the right level of abstraction, is a hard thing.

But common patterns and principles can help us figure out how to do it better, as long as we don't think simply following them slavishly and cargo-cult-y is going to do it for us. After all, we're programmers, looking for common patterns and principles is what we DO.

O actually liked this article a lot, I think it provides more actual guidance and help in how to do things right than most articles in this genre, which are just rants without enough exmaples, or with examples that don't seem helpful to me. This one is helpful to me in improving my craft.

There are no comments on this comment yet.