2 ms·
I agree with the book on TDD if it is the _driver_. It’s not, you are. But if you’re doing a lightweight version where you do actually design, or explore a des
by dgb23 5y ago
I agree with the book on TDD if it is the _driver_. It’s not, you are.
But if you’re doing a lightweight version where you do actually design, or explore a design, and use tests to simply run your code in isolation, document usage variations and failure modes, then it’s a very useful and pragmatic tool.
This doesn’t necessarily mean you should hack your code into small bits and all that. Example tests and a REPL are just a nice combination of tools for interactive programming.