5 ms·
> Since the 90s “composition over inheritance” has been a mantra. That seems a little early. I think the 90's were still pretty inheritance-centric. Java onl
by JackFr 4y ago
> Since the 90s “composition over inheritance” has been a mantra.
That seems a little early. I think the 90's were still pretty inheritance-centric.
Java only came out in 1996. UML 2.0 was releaeased in 2005.
I'd say the composition over inheritance movement wasn't widespread until the 2000's,
- jackblemming 4y ago>[Composition over inheritance] is an often-stated principle of OOP, such as in the influential book Design Patterns (1994)
- JackFr 4y agoYou are absoultely right -- p. 20 "Favor object composition over inheritance", right in the introduction. I guess my memory was wrong (or I was hanging around the wrong crowd in the 90's.)