3 ms·
So passing functions to functions instead of explicitly calling them is what exactly then?
by tcfhgj 2y ago
So passing functions to functions instead of explicitly calling them is what exactly then?
- ramchip 2y agoDependency injection
- Avi-D-coder 2y agoHigher order functions can be used for dependency injection. Dependency injection and the Dependency inversion principle are not one and the same. The principle makes a claim, that inversion is a good onto itself. Injection is a tool not a claim.
- tcfhgj 2y agoThe principle is not making any claim. It is simply a method to achieve something.