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

I've had that experience too. But also the opposite.

I've worked both on code where writing the tests was more effort than the code, and on code where writing the tests was easy, quick and helpful. The latter makes sense, after all a good test is straightline code, zero ifs, zero loops. But the former?

I think the key is that mocking should be used sparingly, but without hesitation.



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

Search: