{"by":"wooby","id":933711,"kids":[933782],"parent":933673,"text":"I agree - this TDD-koan stuff really turns me off. What's preventing the author from just writing fibonacci as an infinite series of tests, and an infinitely long switch statement?<p>What the article doesn't mention is that full coverage on a function taking all positive integers is impossible unless you're comfortable making some assumptions about the behavior of your program.<p>The 'leap of faith' here is induction and the transition from simple testability to recursive implementation is huge, and left basically unexplained.<p>I personally think TDD is a great tool and an awesome way to write code. But it doesn't have to be this mysterious; I just think a function like fib is not a good way to show the benefits.","time":1257880573,"type":"comment"}