Session: Finite State Machines, But Like, For Web Applications
Us web-developers have come a long way. We were once building jQuery spaghetti code – now we’ve wised up and have clean state-based rendering thanks to great tools like React, Redux and the like. But as applications grow larger their neat and tidy perfectly-designed state becomes bigger, and weirder, with new pieces bolted-on. Suddenly it’s much more difficult to be sure where exactly a user is in an application, and it feels like we’re back in the land of spaghetti code.
Finite State Machines to the rescue! They sound nerdy but they can help us model and implement application flows. This talk discusses what they are, how they can help and gives some real-world code examples.
Attendees of this talk will:
- Comprehend common pitfalls of modeling (or not modeling) the flow of an application
- Receive a broad overview of what Finite State Machines are and how they can help resolve these issues
- Explore some real-world libraries (such as xstate.js) and examples for how to implement FSMs in their applications