On the value of state machines: <https://twitter.c...
# linking-together
k
g
“When you put app logic in event handlers (like
onClick
or
onSubmit
), any event can potentially have an effect at any time. State machines follow an explicit event-state-action paradigm, where effects are based on event and state, not just event.” this tweet really gets to the heart of it i think. it seems weird to me that when i’m programming interfaces i suddenly lose all context for the task the user is trying to do. whereas in programming we have stuff like scope, environment, self, call stacks, etc
👍 1
it’s almost like naive event processing is a kind of global effects equivalent to global state variables