How does dependecy injection increase coupling?
Posted
by
B?????
on Programmers
See other posts from Programmers
or by B?????
Published on 2014-06-04T13:57:47Z
Indexed on
2014/06/05
15:37 UTC
Read the original article
Hit count: 671
dependency-injection
|coupling
On the Wikipedia page on dependency injection, the disadvantages section tells us this:
Dependency injection increases coupling by requiring the user of a subsystem to provide for the needs of that subsystem.
with a link to an article against dependency injection.
Dependency injection makes a class use the interface instead of the concrete implementation. That should result in decreased coupling, no?
What am I missing? How is dependency injection increasing coupling between classes?
© Programmers or respective owner