News for hackers. Stuff that matters.
Re:Ask HN: Do you use State Machines for UI dev? by indescions_2018 on Thursday January 04, 2018 @08:19PM (#16075701)
Borrowing the concept of scene graphs from gamedev is one technique I like to use.

https://webglfundamentals.org/webgl/lessons/webgl-scene-grap...

Another data driven architecture is to make extensive use of the Dataset property. Every element has a unique key associated with it. And all keys map to state objects in a data store. It then becomes easier to iterate and extract the relevant queries and stats.

https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Us...

There's no perfect one size fits all solution. But data oriented design is a great tool for starting to break down your app. Best of luck!

There are no comments on this comment yet.