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

Honestly inversion kinda sucks because everybody does it wrong. Inversion only makes sense if you also create adapters, and it only makes sense to create adapters if you want to abstract away some code you don’t own. If you own all the code (ie layered code), dependency inversion is nonsensical. Dependency injection is great in this case but not inversion.


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

Search: