News for hackers. Stuff that matters.
Re:The Logic of Testing and the Testing of Logic by martinrue on Thursday May 24, 2012 @05:53AM (#4017616)
The key here for me is the emphasis on ensuring that code that carries risk (i.e. business logic) must be protected from regression – and that testing is a good way to achieve that, rather than preaching for a particular approach such as TDD/BDD/XDD.

In reality I see quite a few successful approaches of reaching the goal of protecting code from regression and giving us the confidence to change it.

Re:The Logic of Testing and the Testing of Logic by PaulHoule on Thursday May 24, 2012 @09:54AM (#4018399)
Yep.

From the viewpoint of a maintenance programmer, every artifact (file, class, method, function, test, etc.) is like a puppy you've adopted. It costs something to make, it will cost much more to maintain, and if you don't really need it, it does more harm than good.

Per the Pareto principle, 20% of the tests deliver 80% of the benefits.

Focus attention on: (i) tricky things (string parsing), (ii) security sensitive things, and (iii) fragile things (add tests when you fix a bug)

Re:The Logic of Testing and the Testing of Logic by sparknlaunch12 on Thursday May 24, 2012 @06:27AM (#4017697)
> "So, skip all your boilerplate framework tests if you like – if you don’t feel like you need them, you probably don’t. But please, please lock down your business logic in tests. Maintain them. They’re a working representation of what’s actually important."

Business logic should always be the dominating force. This is often forgotten and the time you have 'real' users using the system it is too late to make sweeping changes.

Re:The Logic of Testing and the Testing of Logic by evincarofautumn on Thursday May 24, 2012 @12:47PM (#4019268)
This article does a good job of separating the practical benefits of testing from the religion of it. You should write tests because they help protect you from silly mistakes, and automate things you would otherwise do by hand. Who could say no to that?
Re:The Logic of Testing and the Testing of Logic by sgerrand on Thursday May 24, 2012 @07:24PM (#4021115)
Sadly, this blog post appears to me as an over extrapolated version of "write tests for your code: you'll thank yourself later". I don't see what it adds to the topic, apart from a confessional component.
Re:The Logic of Testing and the Testing of Logic by seanhandley on Saturday May 26, 2012 @12:35PM (#4027655)
Fair comment (though I don't see what it adds to the discussion).
Re:The Logic of Testing and the Testing of Logic by jwallaceparker on Thursday May 24, 2012 @08:11AM (#4017956)
> And now I see it, I don’t understand why anybody could assert that writing tests is a bad idea.

Great use of the word "assert" here - pun intended?

Re:The Logic of Testing and the Testing of Logic by seanhandley on Thursday May 24, 2012 @10:00AM (#4018424)
Oh my yes :-)