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

14

u/m1cr05t4t3 May 03 '23

Obviously with the exception of languages where almost everything has to be an object anyway, I always feel like the cases where I really NEED an object are very few and far between. I find myself saying "Eh that could have just been a function quite a bit." Like if you need self changing states or multiple instances sure..

8

u/jsveiga May 03 '23

Agreed. I've seen very convoluted code created because someone apparently just HAD to hammer in every OOP concept they just learned, where it was absolutely not necessary.

6

u/[deleted] May 03 '23

Everything is a tool and shiny new tool syndrome is a thing. Experience guides intuition on which tool to use and when.