Talk:Dependency injection/Archives/2015/May
Latest comment: 9 years ago by 90.217.41.0 in topic DI diminishes encapsulation
This is an archive of past discussions about Dependency injection. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
DI diminishes encapsulation
This reference is poor and the claim seems to be otherwise unsubstantiated. This article: http://www.bryancook.net/2011/08/on-dependency-injection-and-violating.html states the opposite that "To prevent violating encapsulation concerns, use inversion of control to promote using abstractions instead of concrete dependencies. ", and this article: https://devdimi.wordpress.com/2008/11/24/dependeny-injection-vs-encapsulation/ makes a good argument against the specific claim made here. — Preceding unsigned comment added by 90.217.41.0 (talk) 12:32, 26 May 2015 (UTC)