4 ms·
Almost always when I see criticism of TDD it quickly becomes apparent that the person doing the criticizing either has no idea how the TDD process is meant to w
by User23 4y ago
Almost always when I see criticism of TDD it quickly becomes apparent that the person doing the criticizing either has no idea how the TDD process is meant to work, has no idea how to separate concerns when writing code, or both.
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.