News for hackers. Stuff that matters.
Re:REPL Driven Design by samatman on Thursday May 28, 2020 @03:59PM (#23341853)
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.

There are no comments on this comment yet.