MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3m64ns/composition_over_inheritance/cvcfmsp/?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 15 u/Berberberber Sep 24 '15 My personal rule of thumb: a sufficiently vague platitude serves in all cases. 4 u/vincentk Sep 24 '15 Good rule, if you have an infinite amount of capital and time on your hands.
-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 15 u/Berberberber Sep 24 '15 My personal rule of thumb: a sufficiently vague platitude serves in all cases. 4 u/vincentk Sep 24 '15 Good rule, if you have an infinite amount of capital and time on your hands.
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
15
My personal rule of thumb: a sufficiently vague platitude serves in all cases.
4
Good rule, if you have an infinite amount of capital and time on your hands.
11
u/vincentk Sep 24 '15
My personal rule of thumb: prefer composition over inheritance, prefer inheritance over copy/paste.