3 ms·
No amount of tests can help you if don't know how to solve the problem. And the better you know how to solve the problem the less tests you really need. ;) Old
by pkolaczk 14y ago
No amount of tests can help you if don't know how to solve the problem. And the better you know how to solve the problem the less tests you really need. ;)
Old, but quite relevant: http://ravimohan.blogspot.com/2007/04/learning-from-sudoku-solvers.html http://ravimohan.blogspot.com/2007/04/learning-from-sudoku-s...
Some sane amount of testing is good. However, I'm not very convinced writing tests first is a good idea. I saw a few programmers practicing this and when writing code they often concentrated too much on just passing the damn test-cases instead of really solving the problem in a generic way. Their code looked like a set of if-then cases patched one over another. Therefore, if they missed an important case in their testing suite, they had 99% chances for a bug. Once I ended up writing a separate, more generic implementation to validate the test suite. And it turned out there were a few missed/wrong cases in the test suite.