
Nick's big rewrite
JS Party: JavaScript, CSS, Web Development
How Do You Compose State Machines?
The state machine does a lot more than it may need to as well. It has this context that you can set where you can store things that would be like infinite states. So I wouldn't want to have a unique x state state for every question, because that could be infinite. Instead, I just have an array of questions in there. And then I treated it as an idle state showing the game board and then a question state showing a question and then a show answer state,. The internal to that, showing the answer on that state.
00:00
Transcript
Play full episode
Remember Everything You Learn from Podcasts
Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.