Hacker News new | past | comments | ask | show | jobs | submit login

> It's reasonable to provide a single implementation of an interface, if the goal is to facilitate dependency injection for that component.

You don't really need dependency injection if there is only single choice of what to inject. You can just refer in code to the only possible component.




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

Search: