JS Party: JavaScript, CSS, Web Development cover image

Nick's big rewrite

JS Party: JavaScript, CSS, Web Development

00:00

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.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app