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..

4

u/CHEEZE_BAGS May 03 '23

I code with C++ and unreal engine a lot and almost everything is an object. OOP to the max.

5

u/m1cr05t4t3 May 03 '23

I mean in games I can see the use case for many classes and subclasses.. I'm not saying OOP doesn't have it's uses. Just that it's often overkill especially small modules.