3 ms·
My experience is that TDD helps you write code that consists of tiny functions that are trivially correct. For the simple reason that this is the easiest way to
by kristiandupont 17y ago
My experience is that TDD helps you write code that consists of tiny functions that are trivially correct. For the simple reason that this is the easiest way to write a test for.
As for the exploratory programming argument, a key element in TDD is to write one test and the make it succeed. You are not supposed to write a lot of tests and then the code that makes them succeed. So unless you are so exploratory that you don't even know what you want your next function to do, this would not hinder you either.