3 ms·
Is there evidence that dependency injection improves outcomes?
- dudul 9y agoSad to see that the first response mentions DI frameworks and more code. Dependency injection can - and probably should - be as simple as injecting dependencies in a constructor, period. DI just means that you inject the functions/objects you'll need in your module. There is no black magic or anything. To me, it's the only way to build decoupled systems with good separation of concerns.
- Gibbon1 9y ago> mentions DI frameworks and more code This seems to me like pushing the the dependency problem somewhere else rather than solving it.