Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
scotty79
· 4y ago · 0 comments
Entity-Component-System is so much nicer paradigm than any hierarchy. I wonder why it's not used much outside of gamedev.
Comments
[–]
viktorcode
4y ago
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.
[–]
scotty79
OP
4y ago
To the same degree that SQL does. The answer is, "yes, no, does it matter? is that even interesting?"
[–]
torginus
4y ago
It is - it's just called SQL and is considered the opposite of cool.
[–]
scotty79
OP
4y ago
It's kinda shame that people try to cram it into rigid object model instead embracing flexibility on the code side too.
[–]
202206241203
4y ago
That's just structured procedural programming - subroutines mutating separately-defined data. This used to be all the rage before OOP took over!
[–]
rje99
4y ago
I would have agreed with this whole-heartedly when I first started using ECS. It has its own difficulties though.
[–]
scotty79
OP
4y ago
Like what?
[–]
joshka
4y ago
Explain "entity" to someone that is just starting their software development career ;)