top | item 45835030

(no title)

mininao | 3 months 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.

discuss

order

pshirshov|3 months ago

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.

agos|3 months ago

is there anything more concise than "several talks"?

tantalor|3 months ago

Why would the choice of programming language matter at all with respect to DI?

pshirshov|3 months ago

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.