News for hackers. Stuff that matters.
Re:Indirection Is Not Abstraction by vbsteven on Thursday November 01, 2018 @03:30PM (#18357566)
This is a case where the specific implementation of the ThreeProvider interface/contract is wrong. It has nothing to do with DI and the calling code in the Sample class is correct.

The unit tests for the specific implementation should catch this.

You have to read the code anyway when you are debugging this issue. And by having the implementation behind and interface you can fix the bug once and be sure that it is fixed everywhere it is used.

There are no comments on this comment yet.