3 ms·
The big advantage of TDD is: it guarantees you will write tests. Can't skip tests if you write the tests first. The big disadvantage, which is why I don't use
by samatman 6y ago
The big advantage of TDD is: it guarantees you will write tests. Can't skip tests if you write the tests first.
The big disadvantage, which is why I don't use it, is that you pre-commit to the "correct" function signature and response to some number of parameters. Optimized for the test, as you say.
When I'm working with a repl, it's easy to mutate and experiment with those things until I'm satisfied with them.
But then you still have to translate that into tests, or you get regressions. I'm lazy; I want to skip that part.