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

Just a nitpick: that's TDD, not unit testing in general. When unit testing guides the design, it's usually called TDD.

It's perfectly acceptable to write unit tests _after_ the production code, and to not have them guide the design.



You are right, of course. And that's what I meant. I just equate unit testing and TDD together so often that I tend to (incorrectly) equate the two.




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

Search: