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

> Substitution only matters if you’re using inheritance, but if you’re inheriting, you likely have bigger problems as few real world problems are naturally represented by inheritance.

No, it matters when you implement interfaces (in the Java sense) too.

Tons of real world problems are naturally solved by having multiple implementations of interfaces. Also, Dependency Inversion doesn't even make sense without it.



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

Search: