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

Your comment is involuntarily funny in the sense that 1999 style OOP Java is a serial offender of SOLID, not a prime example of it. It's mainly the Liskov Substitution and dependency inversion principles. If you have deep class inheritance hierarchies, you are not doing SOLID, sorry.


I’m not sure I agree encouraging inversion of control, more indirection and behavior inheritance is an improvement. In the recommended style of most languages, these are probably big anti-patterns.

On the other hand, I never spent that much time working on old Java stuff, so maybe it is a step in the right direction.


Any time you inherit from a concrete class (vs just implement an interface) you depend on something concrete and not an abstraction.




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

Search: