2 ms·
I'm willing to accept that there exists somewhere a large mass of developers that don't think about how their code will be used before writing it. But the one
by marcosdumay 4y ago
I'm willing to accept that there exists somewhere a large mass of developers that don't think about how their code will be used before writing it.
But the one thing I can't agree on is that teaching them TDD is either necessary or sufficient for them to start thinking about that. I'm pretty sure that if you can manage to write code without knowing how it will be used, you will write tests that way too. Writing a test doesn't force you to think about your API any more than writing the API.
- jdlshore 4y agoIt "prompts" you to think about the API is probably a better way of putting it. That prompt is helpful.