Hacker News new | ask | show | jobs
by jnaddef 1812 days ago
Yep, and he did a very bad job at it (and so do you) if the goal was to change my mind. Do you maybe have arguments?
1 comments

Mocks mean your code is too tightly coupled. You should be able to unit test your code by creating only fake data.

Things like dependency injection increase coupling to the point where you have to mock. Avoid dependency injection and other complexity within complexity features.