2 ms·
I introduced statecharts to the SproutCore community in 2008, and there are a few really nice libraries that have grown out of that. Statecharts are now a stand
by erichocean 14y ago
I introduced statecharts to the SproutCore community in 2008, and there are a few really nice libraries that have grown out of that. Statecharts are now a standard part of SproutCore development, both at Apple and in the larger community.
I also teach a course on how to combine MVC architecture with statecharts. It's pretty easy, but non-obvious, and once you learn how, you'll end up using statecharts for the rest of your life. No one goes back to the 'old' way of spreading application state among controller objects.
There are two different statechart implementations in Blossom: https://github.com/fohr/blossom https://github.com/fohr/blossom
One is for the application logic, the other is for writing individual views (called "behaviors", but they're statecharts).
-----
Shameless plug for my 3.5 hour MVC+statecharts course: http://erichocean.com/training/app.html http://erichocean.com/training/app.html
Even though it's targeted at SproutCore devs, the concepts apply to any application MVC environment, e.g. Backbone, Qt, Cocoa, etc.