News for hackers. Stuff that matters.
Re:Stop mocking your system by shadowlight on Sunday July 04, 2021 @07:35PM (#27733477)
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.

There are no comments on this comment yet.