4 ms·
IoC is the way that DI solves the problem. But the problem is dependency management - and there are other ways around that.
by troels 11y ago
IoC is the way that DI solves the problem. But the problem is dependency management - and there are other ways around that.
- stupidcar 11y agoThe difference is that modules systems specify statically resolved dependencies between code files. DI and IoC specify dynamically resolved dependencies between instances of objects. They are both useful, but they both solve different problems.