3 ms·
I would love to see some exploration of the ECS pattern being used for web development. A couple years ago I wrote an experiment[0] using ECS with Web Component
by brochington 4y ago
I would love to see some exploration of the ECS pattern being used for web development. A couple years ago I wrote an experiment[0] using ECS with Web Components to make a simple calculator, and... it was actually pretty nice. ECS does a great job of flattening nested structures, and would be really curious if this would improve things like prop drilling in React.
0: https://brochington.github.io/ecstatic-doc-site/docs/examples/web-comp-calc https://brochington.github.io/ecstatic-doc-site/docs/example...
- ummonk 4y agoFundamentally, UI is nested. The framework has to reflect this and make UI components composable in a bested way or you’ll drive developers crazy. What I do wonder about is being able to use a data oriented system that does reflect this neat ability. E.g. if the data in an ECS system is viewed as a simplified relational database, what would happen if we replaced it with a simplified graph database?
- nine_k 4y agoIsn't a graph of objects a simplified graph database? Trees are not arbitrary graphs; a tree-based database may have nicer propertied than a web of objects, while allowing to describe nesting in a natural way.