Podme logo
HjemOppdagKategorierSøkStudent
130: David Khourshid - Building Better UI Components with State Machines

130: David Khourshid - Building Better UI Components with State Machines

54:162019-12-11

Om episode

Topics include:What exactly is a finite state machine?Why trying to keep track of a component's status using boolean flags is leads to bugs and complex codeWhy it makes so much more sense to keep track of a component's state using some sort of labelHow 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-engineeringHow 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 stateWhat events might look like in your state machine and where you're actually sending them from and toAdvice for naming your eventsWhat it means to "transition" between statesHow using a state machine makes it easy to provide slightly different behavior for the same action based on the current stateThe benefits of visualizing your state machinesUsing the XState library to build state machines in JavaScriptSponsors:Tuple, try the best pair programming app out there for free for two weeksDigitalOcean, get your free $50 credit at do.co/fullstackLinks:"No, disabling a button is not app logic.", David's recent article on state machinesXState Docs

Nyeste episoder

Full Stack Radio
Full Stack Radio

152: Ben Orenstein - How to Stand Out When Applying for a Job at a Small Company

2021-01-2847min
Full Stack Radio
Full Stack Radio

151: DHH – Building HEY with Hotwire

2020-12-281h 14min
Full Stack Radio
Full Stack Radio

150: Secret Screencasting Tips & Behind the Scenes of Tailwind CSS 2.0

2020-10-2159min
Full Stack Radio
Full Stack Radio

149: Choosing a Payment Processor, Radical Icons & W3C Hype

2020-10-0756min
Full Stack Radio
Full Stack Radio

148: Accessible Focus Styles, Tailwind Labs on YouTube, and Secret Projects

2020-09-2959min
Full Stack Radio
Full Stack Radio

147: Surviving GitHub Issues, the Statamic 3 Launch Aftermath, Tailwind 1.8, and Headless UI

2020-09-231h 19min
Full Stack Radio
Full Stack Radio

146: Launching Statamic 3, GitHub Sponsors, Tailwind CSS v1.7, and Preparing for Laracon

2020-09-041h 20min
Full Stack Radio
Full Stack Radio

145: Statamic 3.0 and Tailwind CSS 2.0

2020-08-201h 15min
Full Stack Radio
Full Stack Radio

144: Gary Bernhardt - TypeScript and Testing

2020-08-051h 24min
Full Stack Radio
Full Stack Radio

143: Rich Harris - Svelte and Defending the Modern Web

2020-07-221h 15min
logo

PODME

INFORMASJON

  • Om informasjonskapsler
  • Generelle vilkår
  • Personvernerklæring

LAST NED APPEN

app storegoogle play store

REGION

flag
  • sweden_flag
  • norway_flag
  • finland_flag
redaktorsansvar

Podme arbeider etter Vær Varsom-plakatens regler for god presseskikk. Ansvarlig redaktør og daglig leder er Kristin Ward Heimdal. Redaktør for eksterne innholdssamarbeid er Mathias Thaulow Lisberg.

© Podme AB 2024