8 ms·
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 Subst
by jupp0r 3y ago
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.
- t8sr 3y agoI’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.
- jupp0r 3y agoAny time you inherit from a concrete class (vs just implement an interface) you depend on something concrete and not an abstraction.