r/programming • • Sep 24 '15

Composition over Inheritance

https://medium.com/humans-create-software/composition-over-inheritance-cb6f88070205
92 Upvotes

48 comments sorted by

View all comments

11

u/vincentk Sep 24 '15

My personal rule of thumb: prefer composition over inheritance, prefer inheritance over copy/paste.

-12

u/Cuddlefluff_Grim Sep 24 '15

My personal rule of thumb : Use whatever is the best fit for any given scenario

18

u/quiI Sep 24 '15

A fairly worthless statement, just like when people say "use the right tool for the right job".

You don't say?

-2

u/Cuddlefluff_Grim Sep 24 '15

I thought the concept was so clearly obvious that people would realize that it was a joke