WingNews logo WingNews
top | new | best | ask | show | jobs | submit
GitHub [2]
top | item 32517581

How to build a program that cannot do the wrong thing

3 points| Darmani | 3 years ago |geek.sg | reply

1 comment

order
[+] [-] designed|3 years ago|reply
I would use a state machine in this case. The best tool for doing this in JavaScript/TypeScript is XState. Highly recommend.
[+] [-] unknown|3 years ago|reply

[deleted]

powered by hn/api // news.ycombinator.com