Dependency injection in Node
Dependency injection does not seem to be a really common thing in the Node.js world. To me, this is very surprising because the main benefit in my opinion is that your code becomes just so much more testable.
Granted, dependency injection has an even higher value when using a statically typed language, but getting rid of hard-wired dependencies is a huge advantage in my opionion.
That is why I created a new tutorial series that covers how to do dependency injection in Node.js with a library called awilix
You can check out the video series here. It has four parts in total.
Recent Comments