Hacker News new | ask | show | jobs
by layer8 638 days ago
Dependency Inversion is a recipe for how to invert the dependency between two components (by introducing a third component on which both depend and which can be grouped with either side, hence allowing to invert the dependency at will). It’s not inherently tied to OOP.

Incidentally, one thing it glosses over is the creation of the components, which may prevent completely inverting the dependency.