Re:Simpler UI Logic With Finite State Machines
by jwr on Monday December 23, 2019 @07:25AM
(#21863192)
I am not convinced that explicit state machines are a good way to write code. Using core.async you get an implicit state machine, while preserving the illusion of sequential code, which is much simpler from the developer point of view.
[ Parent
| on HN ]
Re:Simpler UI Logic With Finite State Machines
by AstralStorm on Monday December 23, 2019 @09:06AM
(#21863640)
As long as you don't want to interact from said "sequential" code with the world. Then you get to deal with all the fun of asynchronous programming. Including but not limited to race conditions, data corruption and so on.