4 ms·
I don't really know where such claim came from. TDD is really about getting features tested. I never heard similar claims before.
by mrjin 3y ago
I don't really know where such claim came from. TDD is really about getting features tested. I never heard similar claims before.
- rgoulter 3y agoReusable modules of code involve implementation and the interface. If you just write out an implementation without thought for how others are to use it, there's a risk that you'll end up with an interface that's more complex to use than it needs to be. The idea is that by 'using' the interface of the module first (e.g. by writing tests first, or by writing documentation first), then the design of the interface isn't left to be an afterthought of the implementation. Similarly, it's easier to consider edge cases when thinking about unit tests / documentation, etc.
- meheleventyone 3y agoThat’s amazing because people have been arguing about TDDs impact or lack of as a design technique for over a decade!
- voiceofunreason 3y ago"I never said that test-first was a testing technique. In fact, if I remember correctly, I explicitly stated that it wasn’t." -- Kent Beck, September 2001. Similar claims have been part of the TDD tradition since its very beginning.