News for hackers. Stuff that matters.
Re:Why Is Object-Oriented Programming Useful? With a Role-Pl... by munificent on Tuesday December 02, 2014 @05:16PM (#8690356)
You're making a false equivalence here. Yes, the game industry is moving away from inheritance and for the reasons you note and others.

That doesn't at all mean the game industry is moving away from OOP. Classes and methods still abound and work perfectly fine. Even if you go whole-hog towards ECS, the stuff you're passing around is usually still an instance of some class and not a bare public struct.

Encapsulating data and providing higher-level methods to operate on it works really well. Polymorphism is also powerful and useful in many places. Even subclassing is a good fit for some things. But just realizing that you need to dial back on subclassing doesn't imply that the first one or two things on my list are broken.

There are no comments on this comment yet.