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

> I've seen plenty of horrible unit test driven developed code with a mess of unnecessary mocks.

Mocks are an anti-pattern. They are a tool that either by design or unfortunate happenstance allows and encourages poor separation of concerns, thereby eliminating the single largest benefit of TDD: clean designs.



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

Search: