Code Reuse and Abstraction in FP vs OOP
Posted
by
Electric Coffee
on Programmers
See other posts from Programmers
or by Electric Coffee
Published on 2013-06-30T16:33:52Z
Indexed on
2013/06/30
22:27 UTC
Read the original article
Hit count: 487
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 lies
So 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 myself
To 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
© Programmers or respective owner