News for hackers. Stuff that matters.
Re:Why I don't mock by the_af on Wednesday May 28, 2014 @07:29PM (#7813667)
> Pervasive mocking helps isolate you from the pressure to remove (deep) dependencies on code that you can't control. Redesign your code so it only interacts with such code at the edges. At those places, create APIs that are independent of the code you can't control, and adapt that code to fit your APIs.

Yes... and that process you describe can be accomplished easily using mocks or stubs (depending on what you wish to test).

There are no comments on this comment yet.