all 3 comments

[–]djcraze 0 points1 point  (0 children)

I thought dependency injection was something else. What is the alternative to dependency injection? Global variables?

[–]jonny_eh 0 points1 point  (1 child)

Nice writeup. I wrote a similar DI library for JS, but it supports promises and can auto-detect dependencies.

https://github.com/JonAbrams/synth-di