Re:Object-Oriented Programming Is the Biggest Mistake of Com...
by falcolas on Tuesday January 19, 2021 @09:36PM
(#25841946)
Video game programming, where OOP actually maps pretty well to the problem domain, would beg to differ.
[ Parent
| on HN ]
Re:Object-Oriented Programming Is the Biggest Mistake of Com...
by cliftonk on Tuesday January 19, 2021 @09:44PM
(#25842007)
ECS (data-oriented programming?) is slowly taking over in the video game industry as a clearly superior paradigm. i did some UE4 programming recently, and as powerful as that engine is, the super-heavyweight object/inheritance system was the source of almost all unnecessary complexity i dealt with
Re:Object-Oriented Programming Is the Biggest Mistake of Com...
by brundolf on Tuesday January 19, 2021 @09:39PM
(#25841978)
Even then, from what I've heard the trend is turning sharply away from inheritance and towards composition of components and systems. Maybe you could argue that that's still OOP, but it's not what most people mean by the term these days
Re:Object-Oriented Programming Is the Biggest Mistake of Com...
by falcolas on Tuesday January 19, 2021 @09:52PM
(#25842055)
Personally, when I think of OOP, I think of objects which combine state and the code to modify that state.
The details of how itβs implemented - inheritance vs. composition - strikes me as more of an implementation detail than a vital difference.
Re:Object-Oriented Programming Is the Biggest Mistake of Com...
by brundolf on Tuesday January 19, 2021 @09:56PM
(#25842083)
ECS, the emerging game pattern, breaks off the state-modification code as well
Re:Object-Oriented Programming Is the Biggest Mistake of Com...
by ioseph on Tuesday January 19, 2021 @09:37PM
(#25841966)
Agreed, never understood the appeal for something like web applications but as soon as I tried game Dev it feels like the perfect fit for lots of entities with their own internal state.
Re:Object-Oriented Programming Is the Biggest Mistake of Com...
by topkai22 on Tuesday January 19, 2021 @10:04PM
(#25842136)
There are many enterprise web applications that have large amounts of internal state, so I think OOP techniques work relatively well there.
Game programming is a lot more fun though.
Re:Object-Oriented Programming Is the Biggest Mistake of Com...
by packetlost on Wednesday January 20, 2021 @10:07AM
(#25847247)
Very well architected OOP is fantastic to work with/read on any moderately complex application. The problem is very few people know how to architect an application well, regardless of OOP or not.
Re:Object-Oriented Programming Is the Biggest Mistake of Com...
by est on Tuesday January 19, 2021 @09:39PM
(#25841982)
OOP should be applied to a specific domain, namely GUI and video games.
In other cases it's a meh.
Re:Object-Oriented Programming Is the Biggest Mistake of Com...
by peppery-idiot on Wednesday January 20, 2021 @10:39AM
(#25847664)
I was under the impression OOP with classes is not cache performant when doing common game engine tasks like mass updating the velocity or position of objects.