News for hackers. Stuff that matters.
Re:Goodbye, shitty Car extends Vehicle object-orientation tu... by scotty79 on Friday June 24, 2022 @06:45AM (#31859924)
Entity-Component-System is so much nicer paradigm than any hierarchy. I wonder why it's not used much outside of gamedev.
Re:Goodbye, shitty Car extends Vehicle object-orientation tu... by viktorcode on Friday June 24, 2022 @10:01AM (#31861940)
It does not replace OOP because there are no answers to other questions like: does it support polymorphism? Or data encapsulation? Etc. It's a data access design principle, and that's about it.
Re:Goodbye, shitty Car extends Vehicle object-orientation tu... by scotty79 on Friday June 24, 2022 @05:43PM (#31869780)
To the same degree that SQL does. The answer is, "yes, no, does it matter? is that even interesting?"
Re:Goodbye, shitty Car extends Vehicle object-orientation tu... by torginus on Friday June 24, 2022 @09:27AM (#31861451)
It is - it's just called SQL and is considered the opposite of cool.
Re:Goodbye, shitty Car extends Vehicle object-orientation tu... by scotty79 on Friday June 24, 2022 @05:38PM (#31869691)
It's kinda shame that people try to cram it into rigid object model instead embracing flexibility on the code side too.
Re:Goodbye, shitty Car extends Vehicle object-orientation tu... by 202206241203 on Friday June 24, 2022 @07:06AM (#31860062)
That's just structured procedural programming - subroutines mutating separately-defined data. This used to be all the rage before OOP took over!
Re:Goodbye, shitty Car extends Vehicle object-orientation tu... by rje99 on Friday June 24, 2022 @06:53AM (#31859968)
I would have agreed with this whole-heartedly when I first started using ECS. It has its own difficulties though.
Re:Goodbye, shitty Car extends Vehicle object-orientation tu... by scotty79 on Friday June 24, 2022 @05:44PM (#31869792)
Like what?
Re:Goodbye, shitty Car extends Vehicle object-orientation tu... by joshka on Friday June 24, 2022 @06:49AM (#31859941)
Explain "entity" to someone that is just starting their software development career ;)