3 ms·
Using dependency injection adds complexity. You have to reason about how the injected functionality can change. If you use setter based injection (as opposed t
by kasey_junk 12y ago
Using dependency injection adds complexity. You have to reason about how the injected functionality can change.
If you use setter based injection (as opposed to constructor or parametric injection) then you also add the complexity of reasoning about when it can change.