3 ms·
If I combine A and B to make C, I have more than A and B. Now I have A and B and C and the relationship of A to C and B to C. Composition usually creates comple
by Supermancho 3y ago
If I combine A and B to make C, I have more than A and B. Now I have A and B and C and the relationship of A to C and B to C. Composition usually creates complexity. Interfaces (via aspects, aspects, traits, whatever) tend to simplify, when the complexity is quantitatively extensive enough to outweigh the cost of the interface complexity creation + the complexity saved by using the interface.
At least, that's how I think of it.
- Capricorn2481 3y agoWhy are you making this distinction between composition and interfaces? Just because you're using interfaces does not mean you aren't doing composition. > Interfaces (via aspects, aspects, traits, whatever) tend to simplify, when the complexity is quantitatively extensive enough to outweigh the cost of the interface complexity creation + the complexity saved by using the interface. That sentence is more complicated than anything that has been done with composition.