This is the principle to always create loosely coupled components that can be glued together.
I think the OO community has already learned that interfaces, categories, traits, mixins, or whatever they are called in your favorite language, favor more re-usability than plain inheritance.
The trick is to learn when inheritance, delegation or composition make sense.
As with everything in life, it takes time to proper learn them with lots of failed experiences along the way.
I think the OO community has already learned that interfaces, categories, traits, mixins, or whatever they are called in your favorite language, favor more re-usability than plain inheritance.
The trick is to learn when inheritance, delegation or composition make sense.
As with everything in life, it takes time to proper learn them with lots of failed experiences along the way.