3 ms·
I once tried to write something using a pure TDD approach. It was enlightening. Pluses were refactoring was easy and I had confidence that the system would wo
by MattPalmer1086 4y ago
I once tried to write something using a pure TDD approach. It was enlightening.
Pluses were refactoring was easy and I had confidence that the system would work well at the end.
Minuses were it took a lot longer to write and I had to throw away a lot of code and tests as my understanding increased. It slowed down exploration immensely. Also, factoring the code to be completely testable led to some dubious design decisions that I wouldn't make if I wasn't following a pure TDD approach.
On balance I decided it wasn't a generally good way to write code, although I guess there may be some circumstances it works well for.