News for hackers. Stuff that matters.
Re:Why and how to use service injection in Node.js by plmpsu on Sunday October 31, 2021 @05:11PM (#29060488)
It sounds like you are doing DI without a framework. DI/IoC the pattern seems to be working for you fine if I'm reading your comment right.

Manually doing DI becomes interesting/challenging when not all of the injected objects are singletons (i.e., they are tied to a certain context) or when they have a lifecycle.

Re:Why and how to use service injection in Node.js by tarkin2 on Monday November 01, 2021 @06:06AM (#29064776)
No, I’m doing it with a framework, Dagger mostly. It works as advertised but the downsides makes it a huge pain. I’d rather do it manually tbf.