Re:Alan Kay on the Meaning of “Object-Oriented Programming” ...
by pacala on Sunday March 17, 2019 @06:10PM
(#19417027)
The unit of reuse in programming is the function. Inheritance is just an often cumbersome mechanism to define bundles of functions.
Class hierarchies have benefits and drawbacks, but the very idea is that they result in less code (by reuse). The whole point is to make behaviors more apparent, not less. Things really go off the rails when we only consider programming languages and not programming environments — a decent environment will make behaviors very apparent!