3 ms·
It's the languages that cause the problems, by codifying the pattern wrongly. C++-style "extends" conflates three different things (composition, polymorphism, a
by lmm 6y ago
It's the languages that cause the problems, by codifying the pattern wrongly. C++-style "extends" conflates three different things (composition, polymorphism, and delegation) and encourages programmers to think of them as being the same; in a non-OOP language these three things would naturally emerge as distinct patterns (and thankfully newer languages are finally starting to realise this, and support them as orthogonal things).
- loopz 6y agoThey are also moving away from Objects being natural concepts for communication. Orthogonal design seem to impose structure away from what is easily shared among humans, while inheritance and fat classes are easier to explain.