3 ms·
state machines are a common example of an explicit graph-based abstraction that people build their code around.
by zem 3y ago
state machines are a common example of an explicit graph-based abstraction that people build their code around.
- archibaldJ 3y agoyeah I heard about lib like XState; just not sure what values it actually provides for a team to decide to use it in a real-world app
- bbsimonbb 3y agoI looked at and rejected state machines, because I didn't like/understand the need for the formalism of defining every possible state.
- davidkpiano 3y agoYou don't need to define every possible state. A state machine can serve as a higher-level structure of some of the states (statuses, modes) of parts of your app, for ease of structuring logic. But you can also create a single-state state machine and represent non-finite data as "external state".