3 ms·
TDD is one of these buzzword methodologies that it good to know it exists but is inapplicable by itself. In fact, TDD-like techniques have produced some of the
by GuB-42 6y ago
TDD is one of these buzzword methodologies that it good to know it exists but is inapplicable by itself.
In fact, TDD-like techniques have produced some of the worst code I've seen.
The trap with test driven development is that you write code to pass the tests, not code that solves a problem. It is easy to write code you don't understand. Ex: "is it +1 or -1? +1 passes, -1 fails, it must be +1". In the end you don't know why you wrote +1, and maybe it makes no sense but since it passed your tests...