Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

Higher 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.



The principle is not making any claim. It is simply a method to achieve something.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: