News for hackers. Stuff that matters.
Re:Goodbye, shitty Car extends Vehicle object-orientation tu... by hota_mazi on Friday June 24, 2022 @12:35PM (#31865170)
> OOP can lead to overly complex code, uneeeded abstractions and design patterns thrown on top of each other for no good reason.

All programming paradigms can do that, you are not making any particularly salient point about OOP here.

OOP doesn't mean that everything needs to be an object, but inheritance and shared behaviors are concepts that map neatly between the real world and the programming world, which is why OOP has been such a resounding success.

We have refined this approach now (e.g. using delegation over inheritance), but these basic concepts of shared behavior and reuse remain.

There are no comments on this comment yet.