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

I don't agree that dependency injection is necessarily bad, but if you really want to avoid it/mocking, there are also other ways, i.e. structuring your code into pure and impure parts, only unit testing the pure stuff and relying on integration tests for the "wiring".


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

Search: