day8 / re-frame

A ClojureScript framework for building user interfaces, leveraging React
http://day8.github.io/re-frame/
MIT License
5.44k stars 717 forks source link

Docs missing a statechart guide #47

Closed OliverM closed 7 years ago

OliverM commented 9 years ago

I'm a refugee of big javascript MVC frameworks (Sproutcore in my case). But one thing I loved about SproutCore was how it made statecharts a first-class interaction model. Entering states registered appropriate event handlers (click, etc), provided nesting, concurrent execution & history states, essentially everything you'd like to see in a mature statechart library. What's the clojurescript equivalent, if any? Could any pointers be included in the guide? I see you referenced Automat previously, but it seems to be at a FSM level, not a hierarchical state machine level. Stativus pulls the SproutCore statechart framework out into a stand-alone library though I've not used it. Is it too early for any concrete recommendations?

mike-thompson-day8 commented 9 years ago

I'm not aware of an equivalent. But it is certainly an interesting area. I tried looking at Stativus but its not very well documented.

I'd be quite happy to see ideas/thoughts/approaches put into a Wiki page. Let the ideas mature there. Or in this ticket.

vladar commented 9 years ago

Some other existing tools (js):

https://github.com/DavidDurman/statechart https://github.com/jbeard4/SCION-CORE

jhund commented 8 years ago

There is https://github.com/nodename/stately (cljs statechart lib, currently using parts of re-frame).

mike-thompson-day8 commented 8 years ago

Here's a high quality video on stately (and statecharts generally): https://www.youtube.com/watch?v=klqorRUPluw

mike-thompson-day8 commented 7 years ago

Closing. I've put links to Stately into the External Resources doc (now in develop).