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

> Tight coupling is the basis of oop.

But then we invented inversion of control principle to remove that tight coupling. :)



No inversion of control is still coupling. You have modules A and B.

If module A is defined in terms of B or B defined in terms of A then you have a coupling.

The inversion is orthogonal to the problem right? The inversion of A defined in terms of B is rewriting B to be defined in terms of A.

Better to have A and B not know about each other and be independent instead of dependent.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: