3 ms·
Still, starting with testing helps so much to create modular design because it forces you to write clear/clean interfaces between them. My workflow is usually:
by phzbOx 15y ago
Still, starting with testing helps so much to create modular design because it forces you to write clear/clean interfaces between them.
My workflow is usually:
1. Write the tests and design the module/class/whatever in the same time.
2. Code it. (Repeat)
Although, I rarely write unit tests in TDD; only tests providing a high level design view (Such as functional or integration tests).
- peteretep 15y agoAnd perhaps I didn't make my points clearly enough in the article; I was really trying to differentiate between the Test-Driven Development dogma as a panacea for all development problems ever, and developers writing tests first where it makes sense to do that.
- cbs 15y ago>And perhaps I didn't make my points clearly enough in the article You made them more than clear. People just want to argue the headline. Good post BTW I'm subscribing to your RSS feed.
- bigbango 15y agoI never understood why people can't write well designed modular code without writing the test first. Tests should never dictate the design of an application.