by LAC-Tech · 3y ago · 0 comments
But make no mistake - it's, requires discipline, and good software architecture. Which is my hot take on why it has so much blowback.
For example the claim that TDD impairs your ability to modify code is completely the opposite of my experience. It’s quite simple, just don’t write overly specific tests, and test your module interfaces (however your language implements them) rather than the internals. One code smell is that if your tests are getting in the way of refactoring you’re certainly doing it wrong, since refactoring is a key and I would say even defining part of the TDD development process.
(Assuming that's what you meant by 'exceptional')
Once you have found a solution that works for your context, you can switch to engineering. That's where TDD is used.