Closed ghost closed 6 years ago
@ashtonhogan we are against DI containers, not DI by itself
@yegor256 why? DI is a Martin Fowler thing, I have my doubts. Can you reference any OOP experts saying DI is good?
See this answer. Many concepts that violate encapsulation you've already ruled out in Elegant Objects, I don't see why an exception should be made for DI?
@ashtonhogan you can find more information here: http://www.yegor256.com/2014/10/03/di-containers-are-evil.html
@yegor256 I wasn't entirely sure about this one. Your article mentions
DI containers
in particular, not reallyDI
in general. I'm still uncertain which side of the fence you're on with that...I don't see it listed anywhere here either