3 ms·
> The point of methodologies like TDD is they force people to follow the best practices even when it's easier not to simply by mandating a standard process. I
by shakna 7y ago
> The point of methodologies like TDD is they force people to follow the best practices even when it's easier not to simply by mandating a standard process.
I don't disagree with that, and I don't think the authour disagrees with that.
It's when the mandated process interferes with working in the actual world.
A better test-pipeline in the article's example might be, "We don't merge without full test coverage of changes" rather than "We must have a test before we've explored how a spec should look".
If the standard makes the real world overly difficult, then it will cause people to try and cut corners. It makes the developer seek to do the wrong thing.
There's nothing inherently wrong with TDD or a bunch of other processes. There is a problem if you're pushing yourself into a corner where you find yourself fighting the process rather than solving the task that needs solving.
- hnlmorg 7y ago> A better test-pipeline in the article's example might be, "We don't merge without full test coverage of changes" rather than "We must have a test before we've explored how a spec should look". This is very much the rule I prefer to enforce as well. Though I do really like the TDD approach when there are defined specifications or refactoring happens. In those situations it can sometimes even speed up development because once the tests are in place you then have a tighter "write, test, repeat" cycle. However I do still agree with all the points you've raised.