{"embed":false,"podcast":"Full Stack Radio","podcast_slug":"Full-Stack-Radio","tags":[],"thumbnail_url":"https://images.transistor.fm/file/transistor/images/show/13470/full_1597943814-artwork.jpg","episode":"130: David Khourshid - Building Better UI Components with State Machines","episode_slug":"Full-Stack-Radio-130-David-Khourshid-Building-Better-UI-Components-with-State-Machines","description":"Topics include:\nWhat exactly is a finite state machine?\nWhy trying to keep track of a component's status using boolean flags is leads to bugs and complex code\nWhy it makes so much more sense to keep track of a component's state using some sort of label\nHow 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\nHow 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\nWhat events might look like in your state machine and where you're actually sending them from and to\nAdvice for naming your events\nWhat it means to \"transition\" between states\nHow using a state machine makes it easy to provide slightly different behavior for the same action based on the current state\nThe benefits of visualizing your state machines\nUsing the XState library to build state machines in JavaScript\nSponsors:\n\nTuple, try the best pair programming app out there for free for two weeks\n\nDigitalOcean, get your free $50 credit at do.co/fullstack\n\nLinks:\n\n\"No, disabling a button is not app logic.\", David's recent article on state machines\nXState Docs\n","release_date":"11 Dec 2019","episode_embed_code":"<iframe src=\"https://api.pastimeapp.com/embed/Full-Stack-Radio-130-David-Khourshid-Building-Better-UI-Components-with-State-Machines\" height=\"170px\" width=\"100%\" style=\"width: 1px; min-width: 100%; border: 1px dashed rgba(0,0,0,0.1); border-radius: 10px\" frameborder=\"0\" scrolling=\"no\" loading=\"lazy\"></iframe>","episode_share_url":"https://api.pastimeapp.com/ep/Full-Stack-Radio-130-David-Khourshid-Building-Better-UI-Components-with-State-Machines","podcast_share_url":"https://api.pastimeapp.com/pod/Full-Stack-Radio","audio_url":"https://media.transistor.fm/1b9d93ff/c5be82ff.mp3","ads":[],"meta":{"title":"Full Stack Radio: 130: David Khourshid - Building Better UI Components with State Machines","description":"From Full Stack Radio. Topics include:\nWhat exactly is a finite state machine?\nWhy trying to keep track of a component's status using boolean flags is leads to bugs and complex code\nWhy it makes so much more sense to keep track of a component's state using some sort of label\nHow 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\nHow 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\nWhat events might look like in your state machine and where you're actually sending them from and to\nAdvice for naming your events\nWhat it means to \"transition\" between states\nHow using a state machine makes it easy to provide slightly different behavior for the same action based on the current state\nThe benefits of visualizing your state machines\nUsing the XState library to build state machines in JavaScript\nSponsors:\n\nTuple, try the best pair programming app out there for free for two weeks\n\nDigitalOcean, get your free $50 credit at do.co/fullstack\n\nLinks:\n\n\"No, disabling a button is not app logic.\", David's recent article on state machines\nXState Docs\n","image":"https://images.transistor.fm/file/transistor/images/show/13470/full_1597943814-artwork.jpg","twitter":{"card_type":"summary"}},"episode_data":{"id":645842847,"guid":"6208ef6b-fc7a-48d5-803a-74debbd1ad4a","slug":"Full-Stack-Radio-130-David-Khourshid-Building-Better-UI-Components-with-State-Machines","title":"130: David Khourshid - Building Better UI Components with State Machines","alias":null,"description":"Topics include:\nWhat exactly is a finite state machine?\nWhy trying to keep track of a component's status using boolean flags is leads to bugs and complex code\nWhy it makes so much more sense to keep track of a component's state using some sort of label\nHow 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\nHow 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\nWhat events might look like in your state machine and where you're actually sending them from and to\nAdvice for naming your events\nWhat it means to \"transition\" between states\nHow using a state machine makes it easy to provide slightly different behavior for the same action based on the current state\nThe benefits of visualizing your state machines\nUsing the XState library to build state machines in JavaScript\nSponsors:\n\nTuple, try the best pair programming app out there for free for two weeks\n\nDigitalOcean, get your free $50 credit at do.co/fullstack\n\nLinks:\n\n\"No, disabling a button is not app logic.\", David's recent article on state machines\nXState Docs\n","transcript":null,"deepgram":null,"categories":"[\"Technology\"]","duration":3256,"episode_number":null,"season":null,"episode_type":null,"release_date":"2019-12-11T22:12:00.000Z","audio_url":"https://media.transistor.fm/1b9d93ff/c5be82ff.mp3","image_url":null,"player_url":"/ep/Full-Stack-Radio-130-David-Khourshid-Building-Better-UI-Components-with-State-Machines","valid":true,"accessTier":null,"created":null,"updated":"2023-08-15T08:59:26.214Z","podcastId":394,"podcast":{"id":394,"slug":"Full-Stack-Radio","name":"Full Stack Radio","alias":null,"network":null,"author":"Adam Wathan","rss_url":"https://simplecast.com/podcasts/279/rss","description":"A podcast for developers interested in building great software products. Every episode, Adam Wathan is joined by a guest to talk about everything from product design and user experience to unit testing and system administration.","categories":"[\"Technology\"]","itunes_type":null,"itunesTypeSource":null,"image_url":"https://images.transistor.fm/file/transistor/images/show/13470/full_1597943814-artwork.jpg","thumbnail_url":"https://images.transistor.fm/file/transistor/images/show/13470/full_1597943814-artwork.jpg","error":true,"errorSince":null,"errorReason":null,"feedChangedAt":null,"tagsEditedAt":null,"hiddenAt":null,"hiddenReason":null,"endedAt":null,"popularity":0,"language":null,"country":null,"countrySource":null,"created":"2016-09-14T09:23:52.106Z","updated":"2026-07-02T23:02:48.634Z","tags":[]},"captions":[]},"podcast_data":{"id":394,"slug":"Full-Stack-Radio","name":"Full Stack Radio","alias":null,"network":null,"author":"Adam Wathan","rss_url":"https://simplecast.com/podcasts/279/rss","description":"A podcast for developers interested in building great software products. Every episode, Adam Wathan is joined by a guest to talk about everything from product design and user experience to unit testing and system administration.","categories":"[\"Technology\"]","itunes_type":null,"itunesTypeSource":null,"image_url":"https://images.transistor.fm/file/transistor/images/show/13470/full_1597943814-artwork.jpg","thumbnail_url":"https://images.transistor.fm/file/transistor/images/show/13470/full_1597943814-artwork.jpg","error":true,"errorSince":null,"errorReason":null,"feedChangedAt":null,"tagsEditedAt":null,"hiddenAt":null,"hiddenReason":null,"endedAt":null,"popularity":0,"language":null,"country":null,"countrySource":null,"created":"2016-09-14T09:23:52.106Z","updated":"2026-07-02T23:02:48.634Z","tags":[]}}