3 ms·
They are in place for a reason, but how much of the reason is due to decisions that are already set in stone is kind of my question? It's kind of agreed that o
by headmelted 7y ago
They are in place for a reason, but how much of the reason is due to decisions that are already set in stone is kind of my question?
It's kind of agreed that object composition is a design goal we should be reaching for but are stopped frustratingly short of being able to compose objects from smaller components directly, so the design has to be top-down (class-based inheritance) rather than bottom-up (object composition).
It's also cleaner than dependency injection as you wouldn't need to pre-specify what a class hierarchy can or cannot be composed of at top level.