r/functionalprogramming • u/chandaliergalaxy • Apr 03 '25
OO and FP OOP vs. Functional is Dead
https://medium.com/@alexander.paul.gilbert/oop-vs-functional-is-dead-ff51a70c83ce
18
Upvotes
r/functionalprogramming • u/chandaliergalaxy • Apr 03 '25
43
u/Sarwen Apr 03 '25
While I get the point of the author, it is largely inaccurate. There are lots misinformation in this article.
Her/his classification is ONE of the many that make sense, but claiming it's better than other ones such as OOP and FP is just ridiculous.
8
u/[deleted] Apr 03 '25
LISP, aka "It's just data"
16
u/tisbruce Apr 03 '25 edited Apr 03 '25
He's trying to classify languages by an implementation detail. It's facile and shallow. It's like classifying people by their hair colour. He has example languages in the same category that are nothing like each other. What use is a category that lumps Go with Haskell?
29
u/Lavinna Apr 03 '25
Looking at the emojis in the text, it looks like written by ChatGPT.
12
u/smdowney Apr 04 '25
In my opinion, trying to distinguish between reference counting and garbage collection definitely is missing the forest for the trees. It's just an important implementation detail.
16
u/Complex-Stress373 Apr 03 '25
these two paradigms never compited with each other. They can be fully separated because they solve different problems, but also collaborate, they are not exclusive at all, is just another tool.
I would say "being pragmatic" is the secret in here, instead of being a purist
7
u/john0201 Apr 04 '25
Medium has been taken over by AI articles
19
u/RustinWolf Apr 03 '25
No they are not. That would be a useless, trivial program. I’m not sure it’s worth reading further
5
u/stellar-wave-picnic Apr 04 '25
When I choose an language FP for something, it is because of powerful abstractions and referential transparency. For me working with OOP is literally anxiety inducing due to lack of enforcement of referential transparency. They might have adopted a lot of FP stuff in the popular OOP languages, but the default and the ecosystems are still tailored for a non referential transparency experience.
4
u/[deleted] Apr 03 '25
I love the articles speak about functional languages which assumes that languages like Haskell and Ocaml is trivial to mention.
3
u/sacheie Apr 04 '25
I'm not quite sure what to make of a classification scheme that groups Java, JavaScript, and Haskell all together.
3
u/Helpful-Primary2427 Apr 07 '25
Dynamic and runtime checks are the same thing
1
u/chandaliergalaxy Apr 03 '25
Btw I'm not the author
2
u/LogCatFromNantes Apr 03 '25
You should understand the business and functional it’s more important than techniques
2
u/church-rosser Apr 07 '25
categorize by memory management gc/manual and type system static/dynamic and mutable/immutable data structures. everything else is besides the point in 2025.
2
u/link23 Apr 03 '25
I propose that "sovereign" is the wrong word to use to describe languages that make no guarantees w.r.t. memory management, e.g. C and C++. A better term would be something like "freeloader language", since in those cases, the language does nothing to help the programmer. (Claiming that the programmer is sovereign, as a result, may be accurate, but then we're describing the programmer, not the language.)