News for hackers. Stuff that matters.
Re:Designing very large JavaScript applications by whoisthemachine on Friday April 20, 2018 @11:02PM (#16889777)
>For one, one of the hallmarks of DI is that you should have a single, central location where all your dependencies are assembled

While this is true, if you're doing your composition root right in a large application, then you're assembling most of your dependency graph using conventions, and assembling only the most unique things by hand.

Re:Designing very large JavaScript applications by w4tson on Saturday April 21, 2018 @02:19AM (#16890226)
While it may be a hallmark of DI it’s not necessary. Spring is perhaps the most famous DI framework of them all and is frequently used by “classpath scanning” relevant components to wire in