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

Why pose DI as replacing singletons when they're used together all the time? Injecting dependencies to create a singleton repository or service class, which is shared across requests.




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

Search: