Hacker News new | past | comments | ask | show | jobs | submit login
Ask HN: Why are entity component systems not used widely in web development?
1 point by oooooof on June 10, 2018 | hide | past | favorite | 1 comment
Entity component systems https://en.m.wikipedia.org/wiki/Entity–component–system are used in game development, and claim great benefit in simplifying codebases.

A cursory glance around doesn’t show any web front end libraries based on ECS.

Why have they not had more impact in web front end application development?

Ref: https://www.gamasutra.com/blogs/TobiasStein/20171122/310172/The_EntityComponentSystem__An_awesome_gamedesign_pattern_in_C_Part_1.php




Most web front-end code exists a single page at a time, and encompasses a pretty narrow range of functionality, so you can get away with fewer abstractions/patterns/etc since your whole program is pretty simple.

I think Redux (often used with React/React Native) looks a bit like ECS, at least to the extent that they both use an event/action-oriented approach.

But web front ends are just far simpler than games, and so the main priority is how to make them look like the designers want and how to crank them out quickly, rather than how to manage a lot of complexity.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: