4 ms·
>Somebody kill the term "Dependency Injection" ... Agree enough to take arms and post. Dependency Injection is really just a marketing term; programming via i
by bfung 17y ago
>Somebody kill the term "Dependency Injection" ...
Agree enough to take arms and post. Dependency Injection is really just a marketing term; programming via interfaces is mostly what the DI camp is after, and then selling tools/framework support to automagically "inject" implementations. In my opinion, esp. in the Java world, setter injection is code smell.
- hello_moto 17y agoWho sells dependency injection tools these days? I agree that setter injection is bad but unfortunately some Java libraries/frameworks/guidelines have a rule that enforce the developer to create a class with default constructor thus preventing constructor injection.