Re:Simpler UI Logic With Finite State Machines
by coldtea on Monday December 23, 2019 @01:49PM
(#21866027)
>I read the article, and then beyond, and I still don't know what in tarnation distinguishes an FSM from a simple state.
Well, FSM is a basic CS concept.
>Every program has a set of states and transitions. Is the difference simply that in an FSM the programmer has modeled both sets explicitly? And if so, what is the model -- a map from states to available transitions?
Well, FSM is a basic CS concept.
>Every program has a set of states and transitions. Is the difference simply that in an FSM the programmer has modeled both sets explicitly? And if so, what is the model -- a map from states to available transitions?
Yes, and actions on each transition.