Date: Wed, 11 Dec 2019 22:12:00 +0000
<p>Topics include:</p><ul> <li>What exactly is a finite state machine?</li> <li>Why trying to keep track of a component's status using boolean flags is leads to bugs and complex code</li> <li>Why it makes so much more sense to keep track of a component's state using some sort of label</li> <li>How simple it can actually be to implement UI component logic with a state machine and why you shouldn't think of it as complex or over-engineering</li> <li>How you can think of using state machines in UI programming to be like an inversion of the typical approach you may have taken in the past, where actions become scoped to certain states instead of actions needing to inspect the current state</li> <li>What events might look like in your state machine and where you're actually sending them from and to</li> <li>Advice for naming your events</li> <li>What it means to "transition" between states</li> <li>How using a state machine makes it easy to provide slightly different behavior for the same action based on the current state</li> <li>The benefits of visualizing your state machines</li> <li>Using the XState library to build state machines in JavaScript</li> </ul><p>Sponsors:</p><ul> <li> <a href="https://tuple.app">Tuple</a>, try the best pair programming app out there for free for two weeks</li> <li> <a href="https://www.digitalocean.com/?refcode=74a1c5d63dac&utm_source=fullstackradio&utm_medium=podcast&utm_campaign=DO_Dev_Signup_Cold_FullStackRadio_Podcast">DigitalOcean</a>, get your free $50 credit at <a href="https://do.co/fullstack">do.co/fullstack</a> </li> </ul><p>Links:</p><ul> <li> <a href="https://dev.to/davidkpiano/no-disabling-a-button-is-not-app-logic-598i">"No, disabling a button is not app logic."</a>, David's recent article on state machines</li> <li><a href="https://xstate.js.org/docs/">XState Docs</a></li> </ul>