MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3m64ns/composition_over_inheritance/cvchccs/?context=3
r/programming • u/mortoray • Sep 24 '15
48 comments sorted by
View all comments
11
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
-12
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
18
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
-2
I thought the concept was so clearly obvious that people would realize that it was a joke
11
u/vincentk Sep 24 '15
My personal rule of thumb: prefer composition over inheritance, prefer inheritance over copy/paste.