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

> so the central idea of dependency injection, a concept with a wiki of like 5000 words [1], is just pass parameters to functions...

... instead of functions reaching out to obtain those dependencies from globals. Yes, that is exactly what it is about. Like much of 90-00s era OOP design discourse, it's vastly overcomplicated for no good reason.



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

Search: