2 ms·
Very well put. It is a great paradigm for problems that you understand very well. But I think we can also define it more inclusive and still be fine: TDD is a
by dgb23 7y ago
Very well put. It is a great paradigm for problems that you understand very well.
But I think we can also define it more inclusive and still be fine: TDD is a good paradigm for programming against well defined APIs.
For example if you are handed an API specification then locking down your interface(s) with tests in advance can be very helpful.
What is even more helpful is to have a higher level language or abstraction that encodes the specification in detail and generates the tests for you (Clojure spec comes to mind).
edit: typo