Hacker News new | ask | show | jobs
by pydry 1806 days ago
Yeah, he's talking to you for sure.
1 comments

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?
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.