Re:When you shouldn't bother unit testing
by thirsteh on Friday May 17, 2013 @09:35AM
(#5724199)
Then test-driven development defies common sense. Its whole point is to write a runnable specification in the form of a test suite before you write the actual code.
[ Parent
| on HN ]
...which can have its benefits, but can also go terribly wrong if you get lost.
(Case in point, Peter Norvig comments on a famous series of TDD blog posts that had the goal of writing a Sudoku solver, but ultimately failed:
"And I could see, right from the start, you put these two together, and you could solve this Sudoku thing. He didn’t know that so he was sort of blundering in the dark even though all his code “worked” because he had all these test cases."
http://pindancing.blogspot.com.au/2009/09/sudoku-in-coders-a...)