I've been told that code reuse and abstraction in OOP is far more difficult to do than it is in FP, and that all the claims that have been made about Object Orientedness (for lack of a better term) being great at reusing code have been flat out liesSo I was wondering if anyone here could tell me why that is, and perhaps show me some code to back up these claims, I'm not saying I don't believe you Functional programmers, it's just that I've been indoctrinated to think Object Orientedly, and thus can't (yet) think Functionally enough to see it myselfTo quote Jimmy Hoffa (from an answer to one of my previous questions):The cake is a lie, code reuse in OO is far more difficult than in FP. For all that OO has claimed code reuse over the years, I have seen it follow through a minimum of times. (feel free to just say I must be doing it wrong, I'm comfortable with how well I write OO code having had to design and maintain OO systems for years, I know the quality of my own results)That quote is the basis of my question, I want to see if there's anything to the claim or not
Code Reuse and Abstraction in FP vs OOP
object oriented;functional programming;code reuse;abstraction