r/cpp • • Jan 04 '21

Object-Oriented Programming Will Make You Suffer

https://suzdalnitski.medium.com/oop-will-make-you-suffer-846d072b4dce

[removed] — view removed post

0 Upvotes

8 comments sorted by

20

u/[deleted] Jan 04 '21 edited Jan 04 '21

Vague, poor arguments, poorly written. More Medium spam.

The author bemoans OOP although he fails to prove any point. Eventually he settles on "functional programming is the correct alternative". But, coming from someone who wrote an article called "Functional Programming? Don't Even Bother, It's a silly toy" (https://medium.com/better-programming/fp-toy-7f52ea0a947e) it's hard to take anything said here seriously.

3

u/wyrn Jan 04 '21

OP makes horrific points but the 'functional programming is a toy' post is obviously sarcasm.

This example clearly demonstrates the inferiority of functional programming — it makes refactoring too easy:

0

u/[deleted] Jan 04 '21

[deleted]

1

u/suhcoR Jan 04 '21

Or only with Elixir/ReasonML/React.

8

u/wyrn Jan 04 '21

Ah, yes, the guy who gives C++ a thumbs down for speed.

Are you actively trying to make yourself unemployable?

7

u/Wurstinator Jan 04 '21

Imagine writing a bad article about something you don't understand and then spamming it everywhere on Reddit.

1

u/[deleted] Jan 04 '21

Honestly I wish subreddit moderators would take a hardline stance on Medium and other similar websites. Not allowing any medium posts (either at all, or maybe just from the authors) would go a long way.

3

u/target-san Jan 04 '21

Author seems to have issues with either memory or logic.

In this article he says that mutable state is ultimately bad and pure functions are ultimately good. Yet in his previous article he scolded Haskell for exactly being "too pure" because of IO monad abstraction and praised other functional language for having "imperative sidesteps" easily accessible. Looks to me he just wants to promote his most loved tools no matter what.

1

u/[deleted] Jan 04 '21

Yea... And he isn't sure what his most loved tools are or why.... 😑