4 ms·
The main benefit of TDD is that it forces you to code with testing in mind. This produces a decoupled architecture of easily testable system components... Howe
by gitgud 6y ago
The main benefit of TDD is that it forces you to code with testing in mind. This produces a decoupled architecture of easily testable system components...
However, once you learn the skill of making things testable, you can find that you don't really need to write tests first anymore... which makes TDD less useful
This is not necessarily rational, but it can explain why it's popularity has diminished, even among people who know it's benefits.
- ravenstine 6y ago> However, once you learn the skill of making things testable, you can find that you don't really need to write tests first anymore... which makes TDD less useful Exactly! Plus, I find the idea that TDD produces decoupled architecture to not be true. In fact, it's usually the exact opposite unless someone has a "testability" mindset, in which case they don't need to TDD in the first place.