News for hackers. Stuff that matters.
Re:One Year After Switching from Java to Go: Our Experiences by lucumo on Wednesday February 19, 2025 @05:23AM (#43100588)
No, that's wrong.

DI requires that the deps come from outside, not that it's dynamically created. The opposite is that dependencies are created inside the unit. DI is about which part of the code owns the dependency. With DI it's some parent component, without DI it's the component itself.

DI with magic can simplify the management of component lifecycles, but it's entirely possible to do it without.

There are no comments on this comment yet.