Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The term was coined in 2004: https://www.martinfowler.com/articles/injection.html

It’s not correct that Java was designed for it, unless you want to call class loading dependency injection. It’s merely that Java’s reflection mechanism happened to enable DI frameworks. The earlier Java concept was service locaters (also discussed in the article linked above).



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

Search: