Comment by mininao
1 day ago
Does anyone have resources or ideas to share on the merits of dependency injection in js/ts ? To me it almost always feels clunky and antithetical to the spcriptey nature of JS/TS.
1 day ago
Does anyone have resources or ideas to share on the merits of dependency injection in js/ts ? To me it almost always feels clunky and antithetical to the spcriptey nature of JS/TS.
We described our reasoning behind flavor of DI (dependency graph solvers) in several talks which are listed here https://github.com/7mind/izumi?tab=readme-ov-file#docs
Most of the benefits do not depend on any particular language/runtime/stack.
is there anything more concise than "several talks"?
Yeah, docs and examples here: https://izumi.7mind.io/distage/
Why would the choice of programming language matter at all with respect to DI?
It shouldn't. DI as a set of patterns and approaches can be implemented anywhere. The language and the runtime can help you or be a hindrance, but the principles are generic.