3 ms·
State machines are a brilliant tool, and turn up more often than you expect once you have the background and experience to see them. Some time ago I wrote up a
by ColinWright 4y ago
State machines are a brilliant tool, and turn up more often than you expect once you have the background and experience to see them.
Some time ago I wrote up a particularly simple but elegant example I came across. The write-up is here:
https://www.solipsys.co.uk/new/StateMachineInRealLife.html?vj01hn https://www.solipsys.co.uk/new/StateMachineInRealLife.html?v...
In case people would like to discuss that specifically, I've (re-)submitted it here:
https://news.ycombinator.com/item?id=33045211 https://news.ycombinator.com/item?id=33045211
- arinlen 4y ago> State machines are a brilliant tool, and turn up more often than you expect once you have the background and experience to see them. "A Computer is a state machine. Threads are for people who can't program state machines." - Alan Cox