Comment

Comment by oldestofsports

That is called a "DI Container", and usually manages the objects and order of instantiation etc.

Dependency injection simply means to take objects as parameters, and not instantiate them themselves (which causes "Inversion of Control" also commonly mentioned when talking about DI). DI Containers just makes the managing of objects easier.

Avoiding it like a plague seems excessive, did you have a bad experience with them?

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton