4 ms·
For me at least, TDD has driven me to look for more functional solutions to problems. It's hard to come up with a more testable piece of code than a pure functi
by disease 5y ago
For me at least, TDD has driven me to look for more functional solutions to problems. It's hard to come up with a more testable piece of code than a pure function that spits out the same output every time for a given input.
Unfortunately this approach tends to be less effective in languages that do not have good support for functional ideas like Java and C#.