3 ms·
No, written tests first means you make the code easy to test. That may make it easy to use to, but it is not likely. Easily testable tends to mean that the clas
by tomjen3 15y ago
No, written tests first means you make the code easy to test. That may make it easy to use to, but it is not likely. Easily testable tends to mean that the class knows to little. And as a user that you have to tell it too much.
- Volpe 15y ago> Easily testable tends to mean that the class knows to little. No it doesn't. You've got a pretty big job proving that ALL TDD does that. Have you ever read python doctests? They are a perfect example of tests that describe both functionality and usage.
- tomjen3 15y agoI said tends to mean. That does not mean that it is true all the time, but that, a priori, it is the most likely outcome.