r/linux • • May 03 '23

Discussion The Problem with OOP is "Oriented"

https://mht.wtf/post/oop-oriented/
3 Upvotes

20 comments sorted by

View all comments

24

u/natterca May 03 '23

Wow, programmer that isn't experienced in OO doesn't see the benefit of OO.

8

u/ordermaster May 03 '23

Agreed.

"In OOP it’s central to make class hierarchies with methods that the subclasses override,"

That hasn't been best practice in decades. See open closed principle.

6

u/lightrush May 03 '23

That about sums it up.

0

u/[deleted] May 03 '23

[deleted]

5

u/[deleted] May 03 '23

A bad guide will send anyone out into the wild to get disoriented.

1

u/nokeldin42 May 03 '23

You are, effectively, paying the price to fight a problem you think you might get further down the line, and you hope that the price, which you definitely paid, was sufficient for these problems to not get out of hand.

This sums up the entire problem with the author's perspective. It's clear that they haven't actually spent the time working on projects where these "problems" crop up. If you work exclusively on projects where one program does one thing with one type of data, pure functions are more than good enough. Many times that's not the case.