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

DI is fine, it's just the way people overuse it that's an abomination. I general inject the most significant pieces, or the pieces that are changed. I won't even introduce DI unless I know I'm going to setup a different config of it. My coworkers (sigh), insist that nearly everything must be injected to "eliminate dependencies". (and because it makes it "easier to test"). YMMV


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

Search: