Hacker News new | ask | show | jobs
by gitgud 1098 days ago
Dependency injection & Inversion of control.

Technically 2 concepts but they’re highly related.

Basically, allow the consumer of a component to pass in something, rather than the component needing to contain that logic.

It’s great for front end systems, but also apples to backend and general systems programming… an invaluable concept