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

You don't have to write interfaces to have dependency injection. You can and should declare all your dependencies as constructor parameters. If you create them inside a class you'll permanently lock the two together, thus making it a testability nightmare.


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

Search: