4 ms·
Have you tried state machines? My JS programming often looks something like: https://gist.github.com/anonymous/5314313 https://gist.github.com/anonymous/53143
by jgreen10 14y ago
Have you tried state machines?
My JS programming often looks something like:
https://gist.github.com/anonymous/5314313 https://gist.github.com/anonymous/5314313
I don't really care if the APIs I use have callbacks or promises, both fit in just fine.
- deleted 14y ago[deleted]
- Groxx 14y agoNice example :) I tend to think state machines are underused, they give you wonderfully predictable behavior.