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

I believe all of that is fine, the problem is spending too much time on it. For example, writing comprehensive unit test may be not much better than having just a few, because there is no way to test for every possible bug. Also, in some situations it is better to have code with a few bugs than no code at all.


Unit testing is more about documenting the expected behavior of software, not necessarily to test every possible contingency.

If you want to write dirty code on an initial run, and refactor later unit tests will help out a whole lot.




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

Search: