r/fsharp • u/ilya_ca • Jul 10 '19
Object-Oriented Programming — The Trillion Dollar Disaster
https://medium.com/@ilyasz/object-oriented-programming-the-trillion-dollar-disaster-%EF%B8%8F-92a4b666c7c77
7
6
17
Jul 11 '19
I like FP but the whole, "OOP is completely wrong" is laughable. The overwhelming majority of software that actually does something is OOP.
6
u/pitkali Jul 11 '19
Much as I think the article is deeply flawed, your argument does not hold water. You say people have done useful things using OOP. Was it because they used OOP, or in spite of them using it? The only thing it shows is that it is possible to develop software using OOP, but nobody argues that in the first place.
7
u/JoelFolksy Jul 11 '19
Agreed, yet it was upvoted at least 16 times. "Usage implies fitness" is one of the psychological impulses underlying so many of the debates we have in this sub/industry. Unfortunately we rarely address it directly.
2
u/ken-amazing Jul 11 '19
I think that the majority of software that actually does something is procedural. OOP is a passenger at best. Have a look at this https://youtu.be/IRTfhkiAqPw
5
u/exhortatory Jul 11 '19 edited Jul 11 '19
Almost this entire article is cool kid "x bad y good" speak with like appeal to group mentality, there's very little meat here but a whole lot of straw.
See the first few sentences, which are ... farfetched. And the (first) "real-world example" section which contains no example but does lead to an image of a "promiscuous" woman.
Edit:
Objects (or nouns)
ok.
I expect some sort of reaction from the defenders of OOP. They will say that this article is full of inaccuracies. Some might even start calling names. They might even call me a “junior” developer 👶 with no real-world OOP experience. Some might say that my assumptions are erroneous, and examples are useless. Whatever.
They have the right to their opinion. However, their arguments in the defense of OOP are usually very weak. The funny thing is that most of them probably have never really programmed in a true functional language. How can someone draw comparisons between two things if you have never really tried both? Such comparisons are worthless at best.^ the article is basically a bunch of paragraphs of that attitude repeated over and over, just like asserting stuff and assuming correctness with emotional fluff as the backup
4
Jul 12 '19
Couldn't agree more. Almost every paragraph starts with the same thing. x bad y good and when everyone is hooked to get examples - " nah, let's skip to next paragraph where I ambiguously explain some stuff which says x bad y good, but i won't give any real life examples".
I come from OOP(C#) background, but when I read an article about comparing x,y I need something more than just -"I say so that is why" , I need examples, something to hold on to, not just because some dude said so.
20
u/[deleted] Jul 11 '19
I mean, I love FP as much as anyone can, and I do agree that it’s a better way to write software, but there are a LOT of assertions in this article with no evidence to back them up. Bad OOP is bad not because it’s OOP, but because it’s bad.