2 ms·
This is the top-level comment that resonated most with the point I wanted to make. TDD is good for training you to recognize untestable code. "Oh, yeah, that's
by sowbug 9y ago
This is the top-level comment that resonated most with the point I wanted to make.
TDD is good for training you to recognize untestable code. "Oh, yeah, that's a Law of Demeter thing... maybe we should just ask for the narrow object rather than the giant one that knows how to get the narrow one," etc.
Once you have that skill ingrained, it's reasonable to stray from strict TDD and simply remember to defend your code with adequate tests.