Highest Rated Comments


ericsink12 karma

I've seen you say that you dislike Dependency Injection. I am wondering if you make this opinion more precise.

I'm envisioning a continuum, where one end is "simply calling through an interface" and the other end is "taking DI and IOC to absurd extremes".

Do you know a specific point on that continuum where your perspective goes negative?

ericsink1 karma

FWIW, more clarification from a tweet I posted:

"I'm trying to understand if people dislike DI because they just dislike calling through a C# interface, or because of the way DI facilitates same."

https://twitter.com/eric_sink/status/969734988265553920

ericsink1 karma

Thanks for the reply. One followup question to clarify further, if you have a chance:

If I take the reasons you gave and replace "DI" with "the technique of calling through C# interfaces", would the resulting sentences still accurately represent your opinion?