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

The name is confusing because originally [0] it was exclusively about dynamic injection by frameworks. Somehow it morphed into just meaning suitable constructor parameters, at least in some language communities.

I like “dependency parameters”. Dependencies in that sense are usually what is called service objects, so “service parameters” might be even clearer.

[0] https://www.martinfowler.com/articles/injection.html#FormsOf...



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

Search: