Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>So this is the first reason TDD fails: You're trying to make a design before you learn anything about it.

Well yes, I use my unit tests to learn what works and what doesn't. You're allowed to rewrite or scrap tests, if they are no longer relevant. In the end I feel that having unit tests result in a better final design.

Yes, sometime unit tests are a little contrived. But they can also help you design cleaner interfaces and increase your code reuse.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: