How to build a program that cannot do the wrong thing
1–3 of 3 posts
Re: How to build a program that cannot do the wrong thing
#2[deleted]
Re: How to build a program that cannot do the wrong thing
#3I would use a state machine in this case. The best tool for doing this in JavaScript/TypeScript is XState. Highly recommend.