4 ms·
It is my continued theory that Bob Martin is a double agent, whose mission is to discredit TDD in the wider software community by using an infuriating, backlash
by jacques_chester 9y ago
It is my continued theory that Bob Martin is a double agent, whose mission is to discredit TDD in the wider software community by using an infuriating, backlash-inducing writing style.
- blub 9y agoUnfortunately he failed at that and people started to believe him.
- gaius 9y agoBob Martin famously tried to write a Sudoku solver using TDD, he gave up after a few blog posts...
- pryelluw 9y agoDo you have a link to that? This is too funny to pass up.
- rpeden 9y agoJust to clarify, it was Ron Jeffries who tried the TDD Sudoku solver, not Bob Martin. You can find links to all the the blog posts, plus some commentary here: http://ravimohan.blogspot.ca/2007/04/learning-from-sudoku-solvers.html http://ravimohan.blogspot.ca/2007/04/learning-from-sudoku-so... I try not to be too hard on Jeffries in this case. Although he failed to write a Sudoku solver, expressing the requirements in the form of tests can be a decent way to start in cases where you know some valid outputs for a series of given inputs. I tend to solve Leetcode/Hacker Rank problems this way, and it works pretty well. The catch is that the tests won't tell you what algorithm will best solve the problem. And there's of course no guarantee the tests you've thought up will cover all edge cases.
- deleted 9y ago[deleted]
- marcosdumay 9y agoIs there anybody worth paying attention to out there pushing TDD?
- marcosdumay 9y agoInteresting that I was already downvoted but nobody bothered to reply. If anybody is wondering, that was a honest question. I don't believe in TDD (unless coding against a standard), and that is the main reason why I am interested in reading actually relevant arguments for it.