# David Khourshid: full site content for language models --- # David Khourshid: XState creator, state machine workshops, keynotes & advisory ## About David Khourshid David Khourshid (@DavidKPiano, "David K Piano") is a software engineer in Orlando, Florida, the creator of XState and the founder of Stately (https://stately.ai). Previously a software engineer at Microsoft on Visual Studio Live Share (2017–2021). Bachelor's degree, University of Central Florida. David Khourshid is a software engineer, the creator of XState and the founder of Stately, a platform of tools and services for visual software modeling. XState has over 30,000 stars on GitHub and roughly 3 million npm downloads per week. Before founding Stately in 2021, David was a software engineer at Microsoft working on Visual Studio Live Share. He has taught five courses on Frontend Masters, watched for 37,790 hours, and has spoken at conferences including JSConf, React Advanced London, React Summit, ReactiveConf, YOW! and Agent Conf. A trained pianist, he lives in Orlando, Florida. His talk “Goodbye, useEffect” has been viewed more than 500,000 times on YouTube. He is a longtime advocate for event-driven modeling and visual diagramming as the foundation for reliable user interfaces and, increasingly, AI agents. Through workshops and advisory work he helps engineering teams model complex logic as state machines and statecharts so it is easier to understand, test and change. ### Facts (snapshot 2026-10-19, with sources) - 30K+ GitHub stars on XState. Source: https://github.com/statelyai/xstate - 3M+ XState npm downloads per week. Source: https://www.npmjs.com/package/xstate - 92.6K followers on X. Source: https://x.com/DavidKPiano - 37,790 hours of his Frontend Masters courses watched. Source: https://master.dev/teachers/david-khourshid/ - 140+ talks, workshops and podcasts since 2015, 119 on video. Source: https://davidk.dev/talks/ - Teams with public evidence of using XState/Stately: Netflix (Patrick Cavit (Netflix) on stately.ai: https://stately.ai/); Microsoft (Maya Shavin (Microsoft) on stately.ai: https://stately.ai/); AWS (AWS Amplify UI is built on XState: https://github.com/aws-amplify/amplify-ui); T-Mobile (James Tharpe (T-Mobile) on stately.ai: https://stately.ai/). ### Profiles - X (Twitter): https://x.com/DavidKPiano - GitHub: https://github.com/davidkpiano - YouTube: https://www.youtube.com/@DavidKPiano - LinkedIn: https://www.linkedin.com/in/davidkpiano - Stately: https://stately.ai - Bookings: https://davidk.dev/contact/ ## Services - Private team workshops (XState, statecharts, React state management, AI agents): from $9,500 remote, from $20,000 on-site. https://davidk.dev/workshops/ - Keynotes and talks: corporate keynotes from $15,000, conference keynotes from $10,000, sessions from $5,000. https://davidk.dev/speaking/ - Advisory: $750/hour; architecture reviews from $15,000; retainers from $5,000/month. https://davidk.dev/advisory/ - Self-serve: public workshops $795/seat, recorded workshops $249, office hours $99, 1:1 calls $400/30 min. https://davidk.dev/learn/ --- # XState workshop & statecharts training for teams Private, creator-led workshops by David Khourshid, the creator of XState. Available worldwide: on-site anywhere or remote; travel and lodging billed on top of fees. Prices in USD; listed prices are minimums; travel billed on top. ## Curricula ### XState & statecharts, from the creator (Intermediate) Model complex features as state machines and actors, then ship them with XState v5 in React, Vue, Svelte or plain TypeScript. - States, events and transitions - Hierarchical and parallel states - Guards, actions and delayed events - Actors: spawning, messaging, persistence - XState + TypeScript inference - Visualizing and simulating with Stately Studio ### React state management at scale (Intermediate to advanced) Cut useState/useEffect sprawl, normalize data, choose the right store and make React and Next.js apps easier to change. - Derived vs. stored state - Goodbye, useEffect: event-driven effects - Stores: XState Store, Zustand, Redux, context - Normalization and caching - Server state and Next.js - Refactoring a real feature, step by step ### State-machine-powered AI agents (Intermediate) Build agents that are predictable, testable and observable: explicit states, human approval steps and LLMs only where flexibility pays off. - Why prompts alone produce slop - Agent loops as graphs - Human-in-the-loop approval states - Tools, guards and recovery paths - Observability and evaluation - Using @statelyai/agent and XState ### Visual modeling & model-based testing (All levels) Get product, design and engineering on one diagram, then generate tests from the model instead of writing them all by hand. - Event storming to statecharts - Diagrams that are executable - Finding impossible states and edge cases - Generating test paths from models - Keeping models and code in sync - Team workflows with Stately Studio ## Formats and starting prices - **Remote half day**: from $9,500 (up to 4 hours). Up to 20 engineers; Additional seats $300/person; Live, hands-on, on Zoom/Teams/Meet. - **Remote full day**: from $15,000 (1 day or 2 half days). Up to 20 engineers; Additional seats $600/person/day; Exercises, starter repo and solutions. - **On-site, 1 day**: from $20,000 (+ travel). Up to 25 engineers; Additional seats $600/person; At your office, anywhere in the world. - **On-site, 2 days**: from $36,000 (+ travel). Up to 25 engineers; Additional seats $600/person/day; Fundamentals to advanced patterns. - **On-site, 3 days**: from $50,000 (+ travel). Up to 25 engineers; Includes a full day on your own codebase; Additional seats $600/person/day. - **Leadership & architecture briefing**: from $10,000 (remote half day). Up to 20 leaders and staff+ engineers; “Should we adopt state machines, and how?”; Architecture options, risks and a rollout plan. ## Add-ons - **Pre-workshop codebase review**: $5,000. David reviews your real code before the workshop; Exercises are built around your problems. - **30-day follow-up**: $4,000. Async Q&A for 30 days after the workshop; Two 1-hour office-hour sessions. - **Teaching assistant (30+ attendees)**: $2,500 (per day). Required above ~30 hands-on attendees; Or switch to a lecture format. Book: https://davidk.dev/contact/?type=workshop · Terms: https://davidk.dev/terms/ --- # Keynote speaker: AI agents, state machines & React David Khourshid is a software engineer, the creator of XState and the founder of Stately, a platform of tools and services for visual software modeling. XState has over 30,000 stars on GitHub and roughly 3 million npm downloads per week. Before founding Stately in 2021, David was a software engineer at Microsoft working on Visual Studio Live Share. He has taught five courses on Frontend Masters, watched for 37,790 hours, and has spoken at conferences including JSConf, React Advanced London, React Summit, ReactiveConf, YOW! and Agent Conf. A trained pianist, he lives in Orlando, Florida. ## Signature talks - **Goodbye Slop; Welcome Determinism** (AI engineering, product & platform teams): Agent rules hidden inside a long prompt become harder to inspect, test and trust. Explicit state machines make agent behavior observable while leaving room for models to handle the flexible work. - **Goodbye, useEffect** (React & frontend teams): From fetching data to fighting imperative APIs, side effects are one of the biggest sources of frustration in React. A better mental model for effects, and where they really belong. - **Goodbye, useState** (React & full-stack teams): useState is fine for simple component state, until it isn’t. Patterns for state management that scale with your app instead of against it. - **Stop Drawing Pointless Arrows: Taming Complexity with Diagrams** (Architects, staff engineers, product): Diagrams that actually mean something: using statecharts to make complex behavior visible, reviewable and executable. - **Making State Management Intelligent** (Frontend & UX engineering): Managing state is complicated, and humans are even more complicated. Adaptive, intelligent interfaces built on explicit models of behavior. Available worldwide for in-person and virtual events. ## Fees (starting prices, USD, travel and lodging billed on top) - **Corporate keynote, in person**: from $15,000 (+ travel). Company all-hands, engineering summits, customer events; Includes a 30-minute prep call. - **Corporate keynote, virtual**: from $7,500. Live, with Q&A. - **Conference keynote, in person**: from $10,000 (+ travel). Commercial conferences; Opening/closing keynote slot. - **Conference keynote, virtual**: from $5,000. Live or pre-recorded. - **Conference session (non-keynote)**: from $5,000 (in person + travel). Virtual or pre-recorded: from $2,500. - **Panel, fireside chat or MC**: from $2,500 (per appearance). MC: from $5,000 per day. - **Conference workshop (ticketed)**: from $7,500 (guarantee, or 40% of gross). Whichever is greater: $7,500 or 40% of gross ticket revenue (or 60% of net); Suggested ticket: $500–$800 per person per day; Cancelled if fewer than 10 tickets sold 2 weeks out. - **Vendor or sponsored event**: from $15,000 (corporate rate). When the event promotes a company’s product. ## Speaker terms - Travel and lodging always covered on top of the fee (actual cost or flat buyout: $2,500 continental / $5,000 intercontinental); business class for flights over 4 hours. - 50% non-refundable deposit holds the date; balance due 30 days before. - Free public conference recordings welcome; paywalled distribution +50%; internal corporate recording +30% (12 months) / +60% (perpetual). - Talk + workshop on the same trip: 10% off combined fee. Net-new talk: +$5,000. ## Past events JSConf Iceland (2016, 2018); CSSconf EU 2017; CSSConf Budapest 2019; CSSConf Australia; dotCSS 2019; React Rally (2017, 2019, 2023); ReactiveConf (2018, 2019); React Finland (2018–2022); ReactNext (2019, 2021, 2022); React Summit Remote 2021; React Advanced London 2022; Reactathon (2022, 2023); RenderATL 2022; React Miami 2024; React Conf AU 2020; React Alicante (2019, 2022–2024); React fwdays 2021; Nordic.js (2017, 2019); HolyJS; Uphill Conf 2019; Craft Conference (2019, 2024); Øredev 2022; JSHeroes 2023; Infobip Shift 2021; RxJS Live (2019); DevFest Florida (2017, 2019); FEDC Taiwan 2018; JSDC Taiwan; Effect Days 2024; YOW! Australia 2024; Agent Conf (2020, 2023, 2026); Algolia DevBit 2025; Beyond the Prompt 2026 ## Upcoming - Oct 22, 2026: CityJS Athens: Workshop: Graph Engineering: Making State-Machine Powered Agents (https://greece.cityjsconf.org/home) - Nov 16–19, 2026: React Summit US & AI Coding Summit NYC: Cloning Full-Stack Apps with AI: What It Really Takes (https://gitnation.com/events/ai-coding-summit-nyc) - 2026: React Day Berlin: Goodbye Slop; Welcome Determinism (https://gitnation.com/person/david_khourshid) --- # State machines consultant & XState architecture advisory Architecture advisory and consulting from David Khourshid, creator of XState. ## Engagements and starting prices (USD) - **Expert hour**: $750 (per hour, prepaid). 60-minute minimum; Architecture questions, code walkthroughs, second opinions. - **Architecture review**: from $15,000 (fixed scope, ~2 weeks). Deep review of your state architecture; Written report with prioritized recommendations; Readout call with your team. - **Advisory day**: $6,000 (remote, or $8,000 on-site + travel). A full day working directly with your team; Design sessions, pairing, decision records. - **Advisor retainer**: from $5,000 (per month, 3-month minimum). Async access over Slack or email; Two 45-minute calls per month; Billed quarterly in advance. - **Embedded architect**: from $15,000 (per month, 3-month minimum). ~20 hours per month; Hands-on design and code review; Joins your planning rituals. - **Enterprise XState support**: from $25,000 (per year, via Stately). SLA and priority issue handling; Upgrade and migration guidance; Delivered through Stately (stately.ai). --- # Learn XState & state machines: live workshops, courses, 1:1 ## Self-serve offers (exact prices, USD) - **Public live workshop (1 day, remote)**: $795 (per seat). ~6 hours live with David; Early bird $595; 10% off for 4+ seats; Max 40 seats. - **Live 2-day masterclass**: $1,395 (per seat). Two full days, remote; Exercises, recordings for attendees. - **Multi-week cohort**: $1,495 (per seat). 4 weekly live sessions; Private community + 2 group office hours. - **Recorded workshop**: $249 (single workshop). Self-paced, from live recordings; Complete bundle: $499; Team discounts 10–20%, regional pricing. - **Group office hours**: $99 (per session). 60 minutes, up to 15 people; Bring your questions and code. - **1:1 call, 30 minutes**: $400. Individuals or companies; Focused question or code walkthrough. - **1:1 call, 60 minutes**: $750. Individuals or companies; Deep dive on your architecture. - **Async code & architecture review**: $1,000. Recorded video walkthrough; One repo or PR. ## Frontend Masters (Master.dev) courses (37,790 hours watched all-time) - State Management at Scale in React & Next.js: https://master.dev/courses/react-nextjs-state/ - CSS Animations and Transitions: https://master.dev/courses/css-animations/ - State Machines in JavaScript with XState, v2: https://master.dev/courses/xstate-v2/ - State Modeling in React with XState: https://master.dev/courses/xstate-react/ - State Machines in JavaScript with XState, v1 (retired, replaced by v2) --- # About David Khourshid (David K Piano) ## About David Khourshid David Khourshid (@DavidKPiano, "David K Piano") is a software engineer in Orlando, Florida, the creator of XState and the founder of Stately (https://stately.ai). Previously a software engineer at Microsoft on Visual Studio Live Share (2017–2021). Bachelor's degree, University of Central Florida. David Khourshid is a software engineer, the creator of XState and the founder of Stately, a platform of tools and services for visual software modeling. XState has over 30,000 stars on GitHub and roughly 3 million npm downloads per week. Before founding Stately in 2021, David was a software engineer at Microsoft working on Visual Studio Live Share. He has taught five courses on Frontend Masters, watched for 37,790 hours, and has spoken at conferences including JSConf, React Advanced London, React Summit, ReactiveConf, YOW! and Agent Conf. A trained pianist, he lives in Orlando, Florida. His talk “Goodbye, useEffect” has been viewed more than 500,000 times on YouTube. He is a longtime advocate for event-driven modeling and visual diagramming as the foundation for reliable user interfaces and, increasingly, AI agents. Through workshops and advisory work he helps engineering teams model complex logic as state machines and statecharts so it is easier to understand, test and change. ### Facts (snapshot 2026-10-19, with sources) - 30K+ GitHub stars on XState. Source: https://github.com/statelyai/xstate - 3M+ XState npm downloads per week. Source: https://www.npmjs.com/package/xstate - 92.6K followers on X. Source: https://x.com/DavidKPiano - 37,790 hours of his Frontend Masters courses watched. Source: https://master.dev/teachers/david-khourshid/ - 140+ talks, workshops and podcasts since 2015, 119 on video. Source: https://davidk.dev/talks/ - Teams with public evidence of using XState/Stately: Netflix (Patrick Cavit (Netflix) on stately.ai: https://stately.ai/); Microsoft (Maya Shavin (Microsoft) on stately.ai: https://stately.ai/); AWS (AWS Amplify UI is built on XState: https://github.com/aws-amplify/amplify-ui); T-Mobile (James Tharpe (T-Mobile) on stately.ai: https://stately.ai/). ### Profiles - X (Twitter): https://x.com/DavidKPiano - GitHub: https://github.com/davidkpiano - YouTube: https://www.youtube.com/@DavidKPiano - LinkedIn: https://www.linkedin.com/in/davidkpiano - Stately: https://stately.ai - Bookings: https://davidk.dev/contact/ --- # Talk index (119 recordings) ## Human Approval for AI Agents URL: https://davidk.dev/talks/human-approval-for-ai-agents/ · Video: https://www.youtube.com/watch?v=_KojGuXmbGk Interview · Agent Conf 2026 (Warsaw), studio interview · 2026 · 11:17 · 341 views (as of 2026-10-19) Description: An agent can draft an email, but sending it should wait for approval. David Khourshid, Founder of Stately and Creator of XState, explains how he models that requirement with a state machine in this studio interview from Agent Conf 2026 in Warsaw. Key quotes from the transcript: - "Sure so again it's the combination of non-determinism with agents because you can never predict them and the determinism of state machines which seem like the complete opposite where state machines are purely deterministic." (1:00) - "The state machine itself, it defines the workflow in a way that it's deterministic." (4:00) - "Some agents are simple where it's just, you know, two or three states and then somewhere it's, you know, I would argue you don't need a state machine just because it's a simple input output and the output doesn't matter too much." (9:00) ## Goodbye Slop; Welcome Determinism URL: https://davidk.dev/talks/goodbye-slop-welcome-determinism/ · Video: https://www.youtube.com/watch?v=1rMgw0Q5MgY Conference talk · Agent Conf 2026 (Warsaw) · 2026 · 21:17 · 97,143 views (as of 2026-10-19) Description: Agent rules hidden inside a long prompt become harder to inspect, test, and trust as the context grows. David Khourshid shows how explicit state machines can make agent behavior observable while leaving room for models to handle the work that should remain flexible. Key quotes from the transcript: - "Our goal at agent Conf, we want to make agents that are predictable and we really want to get rid of the slop because our users don't really want to see that." (0:00) - "Today I'm actually going to be talking about how we could use state machines and determinism to improve agent behavior and to remove slop." (3:00) - "If the user asks for changes, revise the draft, and never call send email until the user explicitly approve the email." And we're also repeating that in the tool call, too." (6:00) - "I really want to try making a demo of this." So, in 2023, I was showing how an espresso machine, which is a state machine, can be used with an agent." (18:00) ## Effective State Machines with XState URL: https://davidk.dev/talks/effective-state-machines-with-xstate/ · Video: https://www.youtube.com/watch?v=m-dSS55VO3Y Conference talk · Effect Miami 2 (meetup) · 2026 · 29:40 · 3,021 views (as of 2026-10-19) Key quotes from the transcript: - "Really, I'm going to be talking about two higher level things, effect and XState, and how the combination of them is actually really important." (0:00) - "First of all we start playing the video and if we ever get out of the full state then we pause the video." (9:00) - "The way that I'd like to describe it is that effect is to handling side effects as state machines are to handling behavior." (14:00) - "F first of all this run player which is this whole video player that you could toggle and go full mode mini mode it's all contained in this essentially this big effect." (17:00) ## Goodbye Slop; Welcome Determinism (Beyond the Prompt) URL: https://davidk.dev/talks/goodbye-slop-welcome-determinism-beyond-the-prompt/ · Video: https://www.youtube.com/watch?v=uMvTAF280so Conference talk · Beyond the Prompt 2026 (AG Grid & Bryntum, London) · 2026 · 30:27 · 29,215 views (as of 2026-10-19) Description: This talk was a part of Beyond the Prompt conference, hosted by @agGrid and @Bryntum in London in 2026. Key quotes from the transcript: - "You can still have natural language in the model, the code can map directly to the model, and also everything that we intend to do in our app can map directly to the model as well, and going to demonstrate that later." (11:00) - "I'd like to describe a missing model of the code base as a missing blueprint." (17:00) - "I think this is where it's most useful, and also AI is really good at helping you model things as well, so you don't have to physically write every single line out yourself." (21:00) - "The non-deterministic parts are the fuzzy parts, like is the email missing anything or even drafting the email, something that we cannot express fully in code." (26:00) - "The model is for your team, and the model is especially for your agents so that it can stop producing slop and actually produce good code." (29:00) ## The Piano Man of State Machines URL: https://davidk.dev/talks/the-piano-man-of-state-machines/ · Video: https://www.youtube.com/watch?v=JdaSITbCYEM Podcast · Whiskey Web and Whatnot podcast · 2025 · 59:17 · 109 views (as of 2026-10-19) Description: This week, Robbie and Adam talk with David K. Piano about state machines, the chaos of overusing React hooks, Tailwind controversies, AI agents, security risks in emerging AI tooling, and why determinism still matters. They also chat about pianos, creativity, and finding grounding outside of tech. Key quotes from the transcript: - "Hooks are weird in its own right, but I understand the trade-offs made to have hooks instead of classes." (9:00) - "In that state, let's just say pending image or something, you would have, it's called an always transition." (24:00) - "React and Tailwind are the power cords of the web right now of the of the AI code generated web." (34:00) - "You could think of state machines as the dumbest version of AI just because it's deterministic." (43:00) - "I did four or five years of piano and I was really weird in that I played a lot of the video game music that I've here's a fun little dive into history." (53:00) ## Time Traveling with AI: A Musical Journey URL: https://davidk.dev/talks/time-traveling-with-ai-a-musical-journey/ · Video: https://www.youtube.com/watch?v=6LdvMsFjYLM Conference talk · Algolia DevBit 2025 · 2025 · 16:00 · 89 views (as of 2026-10-19) Description: What might be the future of UX? Explore one possible timeline with David Khourshid and Stephen Shaw, from the @keyframers web animation streaming series, as they invent a four dimensional UI that delivers fast, intuitive results using LLMs integrated with Algolia search. Key quotes from the transcript: - "The challenge was create a really imaginative user interface with AI using of course AI and Alolia together." (1:00) - "If the user asked, hey, I want songs about heartbreak or I want songs about computers or robots or whatever, then we could query the Alolia data set really easily and really quickly." (5:00) - "Otherwise, skip Alolia and go to an LLM and I really wanted to make it work where we just use Alolia for everything." (11:00) - "For those don't know, neural search is sort of the semantic vector layer that's baked into Alolia search." (15:00) ## useState Is Over URL: https://davidk.dev/talks/usestate-is-over/ · Video: https://www.youtube.com/watch?v=3gMP2egzNso Podcast · PodRocket (LogRocket podcast) · 2025 · 42:01 · 1,159 views (as of 2026-10-19) Description: David Khourshid, founder of Stately.ai, joins us to discuss better ways to manage complex state in React applications. We explore: Key quotes from the transcript: - "When status is success, you could say my data, whether it's user data or whatever, is definitely defined." (8:00) - "When we look at how React developers typically fetch data with useEffect and stuff, that alone contributes to a lot of complexity because they think, oh yeah, we could just shove it in the useEffect." (13:00) - "The problem is that state concerns in an application are varied." (18:00) - "The first one is direct state updates, so these are state where you could just update it directly." (23:00) - "Your ephemeral local states lives in use states, and then things that might be shared concerns can be in useReducer or third party state management library." (37:00) ## Goodbye, useState (PodRocket, alternate cut) URL: https://davidk.dev/talks/goodbye-usestate-podrocket-alternate-cut/ · Video: https://www.youtube.com/watch?v=uErkSxYiSLw Podcast · PodRocket (LogRocket podcast) · 2025 · 36:55 · 72 views (as of 2026-10-19) Description: David Khourshid, founder of Stately.ai, joins us to discuss better ways to manage complex state in React applications. We explore the pitfalls of overusing useState, how discriminated unions and state machines improve app logic, the role of server components, and the growing importance of query strings and persistent state management. He also shares insights on modern third-party libraries, React’ Key quotes from the transcript: - "In this episode, David and I talk about hooks to use instead of useState, the problems with useEffect, the delicate balance between local state and global state, and how reducers and state machines can help solve some of those problems." (0:00) - "You can actually design your app logic around that and then from there you could determine is this a good use case for use states or useReducer or a third party state management library." (6:00) - "I'd like to say that like when you're doing things such as async data that's like a oneanddone type of thing but that's not always the case when it comes to dealing with async data." (13:00) - "The problem is that state concerns in an application are varied." (17:00) - "I just this was just a vibe was that like the idea was that less and less data would need to be pushed up and shared in like this whole global state object and that was an antiattern." (29:00) ## State Management at Scale in React & Next.js URL: https://davidk.dev/talks/state-management-at-scale-in-react-next-js/ · Video: https://www.youtube.com/watch?v=gC2pLcsd4ec Course preview · Frontend Masters course preview, State Management at Scale in React & Next.js · 2025 · 14:56 · 2,992 views (as of 2026-10-19) Key quotes from the transcript: - "The problem with selecting the entire hotel is that because it's no longer derived from that data and instead it's redundant data." (3:00) - "The idea is that you want to, at a type level, ensure that this receipt exists." (8:00) - "Instead of this, we could set CoffeeOrder to status success with the receipt." (9:00) ## XState Creator: State Machines & Startups URL: https://davidk.dev/talks/xstate-creator-state-machines-startups/ · Video: https://www.youtube.com/watch?v=hJbWrx_62Bs Podcast · Frontend Masters Podcast #25 · 2025 · 28:49 · 1,219 views (as of 2026-10-19) Description: In this episode, David Khourshid, creator of XState, shares his journey from piano performance to programming, revealing key lessons for developers and founders. Learn why being a great coder doesn’t mean you’ll succeed as a CEO, how state machines simplify complex app logic (and when to avoid them), and the surprising link between music and code. He also discusses building Stately.ai, the challen Key quotes from the transcript: - "I got really obsessed with like you know just the idea of state machines for representing app logic." (2:00) - "I like when you're talking about that, I think about games immediately because game that sounds like every game, you know, has those kind of like flows and I think state machines are more popular in game development." (8:00) - "For me, I was passionate about CSS animations, which is something that rarely comes up on the job." (14:00) - "The inherent complexity really led to, okay, you have lots of box and arrows and the arrows are pointing everywhere and it's still a little bit messy and hard to understand, but the code is probably five times harder to understand." (20:00) ## Goodbye, useState (JavaScriptMN) URL: https://davidk.dev/talks/goodbye-usestate-javascriptmn/ · Video: https://www.youtube.com/watch?v=UYdKqv0W0n4 Conference talk · JavaScriptMN meetup (June 2025) · 2025 · 34:30 · 136 views (as of 2026-10-19) Description: We are so hyped to have David Khourshid (known as David K around the internet) stop by the JSMN stage on June 4, 2025. Key quotes from the transcript: - "We have our string enums over here and instead of having just the status being set we could actually combine that into an object." (12:00) - "Instead of having to render your app and then be like, okay, let's click this button and then let's read from this text and see if the donut is actually added to these list of items." (16:00) - "If you read the React docs of course they will say that hey you should probably just use ustate and useReducer instead." (20:00) - "You could also consider them sync engines but the idea is that right now the way that we fetch data is very manual." (26:00) - "Overall start with useState refactor to better patterns and focus on maintenance because simple is better than easy." (28:00) ## Goodbye, useState URL: https://davidk.dev/talks/goodbye-usestate/ · Video: https://www.youtube.com/watch?v=d3mhZbBOxbE Conference talk · G2i · 2025 · 23:58 · 50,780 views (as of 2026-10-19) Description: State management is easy, until it's not. Sure, useState() is fine for simple component state management – that's literally what it's for. But as our React apps grow in complexity, the inevitable long chain of useStates make it more difficult to understand and maintain app logic, turning our components into Rube Goldberg machines. Key quotes from the transcript: - "The thing is useState and useEffect sort of have this symbiotic relationship where it's just it gets really messy because useState triggers a useEffect which might trigger another useState which might trigger another useEffect which triggers the same useState." (1:00) - "We are tracking the number of clicks but we could just do that in a ref instead of having to useState." (4:00) - "Use something like that because I know I'll get a lot of hate for this too but it will handle fetching data better than you." (9:00) - "Sure you could useEffect and useState but there's another very useful pattern which is useSyncExternalStore and that allows you to provide both a client snapshot and a server snapshot." (18:00) ## Stop Drawing Pointless Arrows: Taming Complexity with Diagrams URL: https://davidk.dev/talks/stop-drawing-pointless-arrows-taming-complexity-with-diagrams/ · Video: https://www.youtube.com/watch?v=d3hVTXrV7ms Conference talk · YOW! Australia 2024 · 2024 · 45:37 · 4,320 views (as of 2026-10-19) Description: This presentation was recorded at YOW! Australia 2024. #GOTOcon #YOW Key quotes from the transcript: - "You know if you try to explain microservices you might you know just go to a whiteboard and start drawing things like this and you'll quickly understand that everything is a graph at varying levels of complexity." (8:00) - "You might think, hey, I can use sequence diagrams to represent just how this service communicates with that one, even if it's not strictly an actor model." (17:00) - "You could see instead of having to draw multiple arrows from each of these states, we can just group them in one parent state and really simplify our state diagrams." (26:00) - "You might be thinking like, I thought diagrams were supposed to reduce complexity." (33:00) - "One of them is constructing the user interface with statecharts which really goes beyond statecharts and explains how these visual diagrams are useful in thinking about your software architecture." (44:00) ## Making state management intelligent URL: https://davidk.dev/talks/making-state-management-intelligent/ · Video: https://www.youtube.com/watch?v=kUzHkj5DtPo Conference talk · Craft Conference 2024 · 2024 · 42:26 · 157 views (as of 2026-10-19) Description: Managing state is complicated. Humans are even more complicated. As developers, it's our job to deliver seamless and intuitive user experiences, but the sheer complexity of human behavior and the real world can make this a daunting task. In this talk, we'll explore a radical new approach to app development where language models (LLMs) and reinforcement learning (RL) can be used to handle app logic Key quotes from the transcript: - "In fact virtually every language has a state machine library and with this you could actually define state machines in a declarative way." (3:00) - "If we graph all of this out, all of the possible things the dog could do, then essentially we're looking for the best path from the initial state to the goal." (26:00) - "One of the main reasons that I'm using state machines for this is because it is very important to realize that in each state of the espresso machine, you could only do a specific number of actions." (30:00) - "Overall state machines and reinforcement learning make LLM agents more intelligent and predictable." (35:00) - "Just like we saw with using state machines with LLMs, the state machine guides the agent instead of trying to have the agents do everything which is unpredictable." (39:00) ## Goodbye, useState URL: https://davidk.dev/talks/goodbye-usestate-bejs/ · Video: https://www.youtube.com/watch?v=aGkscOKWQvQ Conference talk · BeJS · 2025 · 32:02 · 15,347 views (as of 2026-10-19) Description: State management is easy, until it's not. Sure, useState() is fine for simple component state management – that's literally what it's for. But as our React apps grow in complexity, the inevitable long chain of useStates make it more difficult to understand and maintain app logic, turning our components into Rube Goldberg machines. Key quotes from the transcript: - "Whenever you change the value in useState, it will rerender everything that's in that component and under it and that can be really undesirable." (4:00) - "In general with forms, use native form data if you want to." (16:00) - "Instead of doing that, we can eliminate the useEffect and honestly just compute derived states directly in render." (22:00) - "In general useReducer for complex UI logic and state updates where your pieces of state actually have to depend on each other." (25:00) - "Instead of saying like, oh yeah, this use date update triggers this useEffect which calls these other use dates and then this other useEffect changes that state over there." (31:00) ## useWat URL: https://davidk.dev/talks/usewat/ · Video: https://www.youtube.com/watch?v=hDwSvUJWV-k Conference talk · React Alicante 2024 · 2024 · 33:06 · 142 views (as of 2026-10-19) Key quotes from the transcript: - "You MPm install React, or you could use yarn at PNPM at React." (3:00) - "React in general is functional programming, sort of, you know, with, React function components." (8:00) - "In the React documentation, there is actually a really powerful hook that they don't really talk about too much, which is useSyncExternalStore, and this actually comes from the docs." (15:00) - "Honestly, a lot of the weird things about React you're seeing today are just Next.js declaring things as stable, which React is declaring as not stable." (29:00) - "Read the docs seriously, because once you actually read the React docs, which hopefully most of you do, you realize that the weird parts really aren't that weird." (32:00) ## The Actor Model, Behind the Scenes URL: https://davidk.dev/talks/the-actor-model-behind-the-scenes/ · Video: https://www.youtube.com/watch?v=GhAl0EiXmaY Conference talk · JSConf Budapest 2024 · 2024 · 32:42 · 4,444 views (as of 2026-10-19) Description: Let's set the stage. You have a complicated application with many parts that need to work together, and you want to avoid making your code an unscripted mess. Enter the Actor Model, a very old concept that is relevant now more than ever. In this talk, you'll learn how the actor model orchestrates tasks, ensuring each actor knows its part, communicates effectively, and remains isolated from potenti Key quotes from the transcript: - "Based on messages sent between other actors, and this really set the foundation for, just the concept of an actor model." (2:00) - "Is Orleans and Xat, which I'm going to talk about, actually implements the actor model as well." (12:00) - "At least in our version of the actor model, and so with promises, it's essentially you're initializing the actor the actor is." (18:00) - "In an even more exciting example, we're also using the actor model and hent architecture to have the agent act as an intelligent assistance, for the user on an application that's already using state machines and XState." (28:00) - "Overall, the actor model, at least in my view, is an intuitive way to model complex systems." (31:00) ## How State Machines Create Robust Software (Deep Dive) URL: https://davidk.dev/talks/how-state-machines-create-robust-software-deep-dive/ · Video: https://www.youtube.com/watch?v=Fo3IFAYVWMk Podcast · Tejas Kumar podcast · 2024 · 1:33:47 · 522 views (as of 2026-10-19) Key quotes from the transcript: - "XState Embraces two main things state machines and the actor model, and so with state machines." (7:00) - "Make it easy for you to create state machines and to visualize them as well." (20:00) - "The original problems that XState solve are these highly complex problems, so it tracks that XState would model not just state machines, but statecharts." (29:00) - "I see a very clear line between XState state machines, Markov chains, neural Nets, deep learning, AI." (53:00) - "Just to bring it in a practical example, just like you could see state machines everywhere, you could see the actor model everywhere." (1:05:00) - "I hope you learned a lot about state machines, state management, when to manage, state XState, Stately agent, and more." (1:32:00) ## Effective state machines for complex logic (Effect Days 2024) URL: https://davidk.dev/talks/effective-state-machines-for-complex-logic-effect-days-2024/ · Video: https://www.youtube.com/watch?v=mZJxGgI7FXU Conference talk · Effect Days 2024 · 2024 · 30:05 · 13,556 views (as of 2026-10-19) Key quotes from the transcript: - "The reason we do this is because with state machines, you want events to have an effect only in certain states." (6:00) - "I want to talk a little bit about the actor model, mostly because I really wish to see this in Effect one day." (11:00) - "Be happy to talk your ears off about actors and state machines and all of that." (15:00) - "The main point is that you could incrementally adopt Effect pretty much anywhere, especially in XState." (25:00) - "When you're modeling effects with Effect, you should be able to declaratively say, this is going to retry." (29:00) ## useWat² (with Jenny Truong) URL: https://davidk.dev/talks/usewat2-with-jenny-truong/ · Video: https://www.youtube.com/watch?v=FdqUWSF1mGE Conference talk · React Miami 2024 · 2024 · 27:55 · 349 views (as of 2026-10-19) Description: React has quite the history. From React.createComponent to server components, React has evolved to be a mainstay in web development. But let's be honest, there's many un-use-ual things about React. Join Jenny and David as they revisit React's lifecycle from being a sprinkle of interactivity to wanting to be its own language, with plenty of puns, nostalgia, attempted pair programming, and a peek in Key quotes from the transcript: - "React is a library that acts sort of like a framework, okay, so then React is a framework that thinks it's a library." (2:00) - "In React 18 and below, for some silly reason, you have to like pass this component, the function component, into forward ref." (18:00) - "Thankfully, in React 19, React forget is coming up, and that's going to let you just completely not use those, hopefully not use those used callback, used memo." (20:00) - "If you've been around a while and you've used React back when there were class components, you probably remember this." (26:00) ## Webinar: State Machines and Actors with XState v5 URL: https://davidk.dev/talks/webinar-state-machines-and-actors-with-xstate-v5/ · Video: https://www.youtube.com/watch?v=1NsSHkao-q4 Webinar · Stately webinar/stream · 2024 · 2:42:16 · 7,520 views (as of 2026-10-19) Description: Learn how to manage and visualize application logic with state machines and actors with XState v5! In this webinar, we will be creating a real-world app where you will learn: Key quotes from the transcript: - "The first part of this, it's just going to be a structured way of teaching you, the basics of XState, so the principles of the actor model, and state machines, and statecharts." (0:00) - "As a way to, manage logic and actor logic and complex state management and state machines, and things like that." (28:00) - "I like to think of a state machine, or using state machines in XState as basically like using an airplane." (36:00) - "If you're new to XState and statecharts, all this means is that you could have states that are inside of states." (56:00) - "It doesn't need to know about the feedback machine or any of these other actors, it's it doesn't even need to know about the actor, model or state machines at all." (2:14:00) - "You could also click simulate and click through these, and this will give you a better understanding of how state machines actually work." (2:37:00) ## From Pandemic Pastime to Real VC-Funded Startup URL: https://davidk.dev/talks/from-pandemic-pastime-to-real-vc-funded-startup/ · Video: https://www.youtube.com/watch?v=ibEKISee3Vk Podcast · The Work Item podcast (Den) · 2024 · 31:58 · 72 views (as of 2026-10-19) Description: In this episode of The Work Item, I had a conversation with David Khourshid, founder of Stately.AI. You might know him as @DavidKPiano on social media. Today, we're breaking new ground around unconventional paths of building an engineering career, entrepreneurship, and leveraging your audience as the potential first customers for your product. And of course - we talk a bit more about state machine Key quotes from the transcript: - "Wanted to do something a little bit more exciting, and so I had the opportunity to actually start a startup around that, just because I really wanted to see." (2:00) - "Just to get your name out there, but if you already have that audience, it becomes a lot easier." (13:00) - "Plus, it's sort of a win-win because for the Europeans, if they do start their day a little bit later, then it actually works out better." (18:00) - "You are much better equipped to, help any company that you work with, to achieve those goals." (22:00) - "Building communities is never easy, like building anything around any product is never easy, especially anything of, any significant size." (25:00) ## Frontend Feud: CSS Podcast vs @keyframers URL: https://davidk.dev/talks/frontend-feud-css-podcast-vs-keyframers/ · Video: https://www.youtube.com/watch?v=j1xHluFjdsQ Podcast · JS Party Frontend Feud (Changelog) · 2023 · 51:04 · 5 views (as of 2026-10-19) Description: Una & Adam from The CSS Podcast ( defend their Frontend Feud title against challengers David & Shaw from the keyframers ( . Let’s get it on! Key quotes from the transcript: - "Welcome friends, this is Frontend Feud, everyone's favorite award-worthy game show made by the award-winning JS Party podcast that you're listening to this very moment." (2:00) - "I apologize, but going sto the board and now team CSS podcast gets to play." (6:00) - "After the first round CSS podcast holds on to their 80 points, we now move to round two." (13:00) - "After four rounds, we have CSS podcast pulling away a little bit." (33:00) - "CSS podcast 312 key framers, you guys played a heck of a game." (46:00) ## X gon' State it to ya URL: https://davidk.dev/talks/x-gon-state-it-to-ya/ · Video: https://www.youtube.com/watch?v=br4qhVRtkU0 Podcast · JS Party (Changelog), "X gon' State it to ya" · 2024 · 1:05:30 · 20 views (as of 2026-10-19) Description: Amal, KBall, and Nick welcome David Khourshid to the show to talk about his project, XState. XState brings state management to a new level using finite state machines and is compatible with your stack. We talk about how the idea came to fruition, its practical uses, and where it’s going. Key quotes from the transcript: - "Before we dig too far in, maybe let's take a step back and define what a state machine is, so state machine." (8:00) - "You can put something in an exact state, you can reproduce that state exactly, you can always understand what's going to happen here." (19:00) - "Actors exhibit state machine behavior, whether it's implicit or explicit, just because state machines and actors go really well together." (27:00) - "If there is some like actor that's concerned with this and another actor concerned with that, then those should be two separate state machines, or actors, however, you want to make it." (32:00) - "I think when it comes to stuff like routing and application, state, one of the nice things that you can get with a state machine approach is it." (43:00) - "I always say, like, you don't need a state machine if your app isn't complex." (53:00) ## Webinar: Get started with XState v5 URL: https://davidk.dev/talks/webinar-get-started-with-xstate-v5/ · Video: https://www.youtube.com/watch?v=TRVjeil-y74 Webinar · Stately webinar · 2023 · 1:13:11 · 11,268 views (as of 2026-10-19) Key quotes from the transcript: - "We are the Stately team and this is our very special XState version 5 webinar." (0:00) - "Every actor has its behavior that could be controlled by a state machine." (15:00) - "One huge difference and the reason why it's Stately AI inspect is because we're going to have an API that lets you basically inspect anything, even if it's not XState." (44:00) - "Instead of passing a string over here, the guard type is to do is completed and it expects parameters, too." (53:00) - "Going with that inversion of control, you're going to say these actions expect these parameters instead of these actions expect this specific type of output from the events." (59:00) - "If you wanted to get started quickly first of all the API you just import create machine and create actor and that hopefully this webinar showed that's really all you need." (1:05:00) ## Founder to Founder: Stately AI URL: https://davidk.dev/talks/founder-to-founder-stately-ai/ · Video: https://www.youtube.com/watch?v=oNf18QNdaZ4 Podcast · Gun.io Founder to Founder podcast, Ep. 36 · 2023 · 28:53 · 1,535 views (as of 2026-10-19) Description: This week, Teja talks with David Khourshid, Co-founder and CEO at Stately. This AI tool serves as a visual source of truth for creating, deploying, and analyzing any type of logic. They discuss the importance of considering the customer at the outset, the ways metrics can skew your path, and how you know when it's the right time to turn that side hustle into a full-time business. Key quotes from the transcript: - "Yanamandra, sits down with David Kid of Stately AI, the company behind XState, a best-in-class open- source library for handling complexity." (0:00) - "The precursors to the Stately Studio that we call it have been just me working on weekends and just trying to do something to make application logic, visual." (7:00) - "The problem with hyperfocusing on metrics is that you learn to sort of gain the system." (15:00) - "The idea is that when you create that diagram, that doesn't just become a like a what we call a speculative artifact, like just a static diagram." (25:00) ## Make Your Apps Resilient Using Finite State Machines URL: https://davidk.dev/talks/make-your-apps-resilient-using-finite-state-machines/ · Video: https://www.youtube.com/watch?v=BrM5YYdvcPU Podcast · Kent C. Dodds (Chats with Kent) · 2023 · 32:33 · 50 views (as of 2026-10-19) Description: In this episode, David Khourshid gives the rundown on how finite state machines can make your app more testable, more resilient to bugs, and easier to refactor. Key quotes from the transcript: - "Two years ago was pretty much the first time I talked about finite state machines in general at a conference, and so I was really happy to, you know, be able to do that." (1:00) - "The main idea behind finite state machines is that you are in only one of a finite number of states at any given time." (5:00) - "When I'm building, a finite state machine with XState, for example, I'm going to take my, you know, my object." (10:00) - "With the actor model, it's like, think of each of your components having local state, and that's it." (21:00) - "Is to say, like, take the feature that you're working on right now, and, take a step back and see if you can model it in your head as a finite state machine." (29:00) ## Making State Management Intelligent (French Tech Front-end) URL: https://davidk.dev/talks/making-state-management-intelligent-french-tech-front-end/ · Video: https://www.youtube.com/watch?v=zZuz-4bdlE8 Conference talk · French Tech Front-end Meetups · 2023 · 33:01 · 30 views (as of 2026-10-19) ## Making state management intelligent URL: https://davidk.dev/talks/making-state-management-intelligent-react-alicante-2023/ · Video: https://www.youtube.com/watch?v=M70Va8usecc Conference talk · React Alicante 2023 · 2023 · 31:54 · 186 views (as of 2026-10-19) Key quotes from the transcript: - "If Pac-Man eats a power pill, then the ghost actually goes to a different state, which is running away from Pac-Man." (8:00) - "The goal of an agent in reinforcement learning is to maximize a future reward, just like hopefully what all of us are doing, so reinforcement learning described in the state machine." (10:00) - "You want to get to the reward state, and your dog is trying to find the most optimal path to get a reward." (16:00) - "First of all, one of the biggest things that you should realize is that LLMs are unpredictable, and that's why we use, you know, state machines to help." (24:00) - "Declarative state management, using events and having finite states really makes your app more, capable." (30:00) ## Webinar: Create app logic with XState V5 URL: https://davidk.dev/talks/webinar-create-app-logic-with-xstate-v5/ · Video: https://www.youtube.com/watch?v=Z_o8BaExmFQ Webinar · Stately webinar · 2023 · 1:30:49 · 7,162 views (as of 2026-10-19) Description: Join us for an introduction to XState V5 with David Khourshid and Gavin Bauman. Key quotes from the transcript: - "Keep in mind, this is an XState version 5 beta webinar, so we're going to be learning the basics of XState version 5." (1:00) - "We just want to import that directly from XState and you pass your machine into that, so we're going to pass the feedback machine directly into that." (8:00) - "We have prompts, and if we look back at the feedback form, we could call this state the prompt states." (13:00) - "What this means is that at any time I could go to this closed state, doesn't matter if I'm here, I could go closed close." (22:00) - "The reason is because the state machine has that logic, so you don't have to rely on the logic being spread out in your UI, it is contained within the state machine." (29:00) - "We have this machine, but we need to actually make that a live store, so con actor equals, create actor machine, and we could also start here." (1:11:00) ## useWat URL: https://davidk.dev/talks/usewat-react-rally-2023/ · Video: https://www.youtube.com/watch?v=QoJcMhpRngQ Conference talk · React Rally 2023 · 2023 · 32:41 · 2,681 views (as of 2026-10-19) Key quotes from the transcript: - "We have a slight problem here, and that's that whenever the count updates, every single component is going to update with that count." (2:00) - "To be honest, most of strict mode is for legacy React." (12:00) - "You could update partial data with used reducer, and also useReducer can be simpler than useState for a few things, for example." (16:00) - "Just like they could just wrap this up, put a bow on it, make it an official reacts thing, and then you have your Global state management library in React." (27:00) - "If it's not directly related to UI, it should not be in React, so that sounds like sort of a weird thing, it's like, doesn't React." (30:00) ## The two ways to manage state URL: https://davidk.dev/talks/the-two-ways-to-manage-state/ · Video: https://www.youtube.com/watch?v=yVhmYiRNPvw Conference talk · JSHeroes 2023 · 2023 · 27:53 · 632 views (as of 2026-10-19) Description: There are two kinds of state management libraries: easy and simple. Direct and indirect. Quick and maintainable. When you’re quickly prototyping apps or writing robust app logic, which do you choose? Is there a right answer? In this talk, we’ll traverse the evolution of state management, from mutation to statecharts and signals and take a walk through the state-of-the-art state libraries. Key quotes from the transcript: - "If you don't think that managing state is difficult, then you know, you're probably either creating simple applications, or you're sort of just slowly reinventing other ways of managing state." (1:00) - "The next realization is that effects management is actually state management, so we might think, okay, when you're given a state in an event, you get a next state." (8:00) - "We could actually model the behavior of an actor, both how the state updates and how its behavior changes." (14:00) - "Otherwise, switch statements are a great way to model simple state machines." (18:00) ## Making state management intelligent URL: https://davidk.dev/talks/making-state-management-intelligent-reactathon-2023/ · Video: https://www.youtube.com/watch?v=Iw8Uf7q4nVc Conference talk · Reactathon 2023 · 2023 · 33:33 · 2,168 views (as of 2026-10-19) Description: Making state management intelligent Managing state is complicated. Humans are even more complicated. As developers, it's our job to deliver seamless and intuitive user experiences, but the sheer complexity of human behavior and the real world can make this a daunting task. In this talk, we'll explore a radical new approach to app development where language models (LLMs) and reinforcement learning Key quotes from the transcript: - "I actually want to take a step back, like, way back to, you know, 1980s, when the idea of what's known as reinforcement learning was first introduced." (7:00) - "Reinforcement learning does not exactly explain how the brain works, but it is a good way of explaining the psychology behind how intelligent creatures decide which actions to take." (18:00) - "One of the main ideas that really gets us to intelligent user interfaces and intelligent, state management is the fact that everything is a graph, a directed graph." (22:00) - "One of them is called state machine synthesis, and what this means is that you don't have to write a state machine." (28:00) - "The two takes that I really want to share, and sorry that I'm out of time, is first of all, your state management." (32:00) ## Panel: The Future of the World and AI URL: https://davidk.dev/talks/panel-the-future-of-the-world-and-ai/ · Video: https://www.youtube.com/watch?v=oCLsuoL8bsg Panel · Agent Conf 2023 · 2023 · 25:58 · 97 views (as of 2026-10-19) Description: AgentConf 2023 hosts a captivating panel discussion featuring esteemed experts Tejas Kumar, David Khourshid, and Jani Eväkallio. The panelists engage in an insightful conversation centered around the future of the world and the role of artificial intelligence (AI) in shaping it. This thought-provoking discussion takes place amidst the backdrop of AgentConf's mission to provide "Unique Inspiration. Key quotes from the transcript: - "Fundamentally, it's not in service of the goal of the technology to begin with, which is to actually build products to help people's lives and build infrastructure." (10:00) - "Essentially today is that you take, you know, somewhere between, like a hundred and ten thousand samples of data, and you upload it into the model as a CSV file." (13:00) - "LLM is a large language model trained on the Corpus of, just all of human text for the last, however many years." (15:00) - "Always bet on open source, like if something can be done, chances are people are going to open source it." (21:00) ## From AI to AGI: The path to generally intelligent software URL: https://davidk.dev/talks/from-ai-to-agi-the-path-to-generally-intelligent-software/ · Video: https://www.youtube.com/watch?v=qoNDyOClTtI Conference talk · Agent Conf 2023 · 2023 · 33:48 · 7,187 views (as of 2026-10-19) Description: At AgentConf 2023, David Khourshid delivers a captivating talk titled "From AI to AGI: The Path to Generally Intelligent Software." With his expertise in artificial intelligence and software development, Khourshid provides valuable insights into the journey towards achieving generally intelligent software. Key quotes from the transcript: - "You don't have the same environments every time, but it's still a constrained space and also things can change depending on what happens in the environment." (11:00) - "The agent should not hard code the model of a specific environment, instead, it should be smart enough to generalize what environment it's in." (14:00) - "I found a way like I found a specific path in the Maze where I get a good reward every time." (17:00) - "Instead of our normal understanding that, you know, when we're in the prompt state and we go from feedback bad to form, instead, we are." (30:00) - "Training a reinforcement learning agent on or a reinforcement learning model on it, and being able to adapt that graph to what's actually happening in the real world." (33:00) ## Migrating to XState v5 beta webinar URL: https://davidk.dev/talks/migrating-to-xstate-v5-beta-webinar/ · Video: https://www.youtube.com/watch?v=s-nqoIbIZac Webinar · Stately webinar · 2023 · 1:04:37 · 1,924 views (as of 2026-10-19) Description: XState v5 beta is here! Join David and Laura to learn the steps needed to migrate to XState v5 beta, and we’ll answer any questions you have about XState. Key quotes from the transcript: - "Hi friends, David and I are here today to give you a guide to migrating from XState version 4 to XState version 5." (0:00) - "As you would expect in previous versions of XState v4, the assign action was always prioritized, and so now things just work predictably by default." (9:00) - "We could use the from promise function and that's imported directly from XState, and so in from promise." (16:00) - "We would have to create a function that creates a machine, so in other words, a machine factory, so, let's call this create feedback machine." (19:00) - "The always events, now need to be defined through the always property, and you can't define them via an empty string as well." (38:00) - "You could say on some event, instead of in two, for instance, you would say, guard, state in." (59:00) ## CSS Animations and Transitions URL: https://davidk.dev/talks/css-animations-and-transitions/ · Video: https://www.youtube.com/watch?v=3468_CDnZJQ Course preview · Frontend Masters course preview, CSS Animations and Transitions · 2023 · 17:02 · 869 views (as of 2026-10-19) Key quotes from the transcript: - "We could add that same animation to the input and button, and let's see how that looks." (1:00) - "Instead of doing animation duration times two or animation duration plus animation duration, we could do a little bit of math here and just to calc the animation duration plus the input duration." (3:00) - "Remember over here, every animation frame we want to move a portion of the way towards the target points, and so that's what's going to get us our smooth animation." (13:00) - "Let's kick it off by actually lerping and then that's going to recursively call lerp every single animation frame." (16:00) ## Getting Started with XState in Angular & SolidJS URL: https://davidk.dev/talks/getting-started-with-xstate-in-angular-solidjs/ · Video: https://www.youtube.com/watch?v=1N0VUT_0n54 Livestream · Build IT Better S01E06 (This Dot Media) · 2023 · 30:47 · 597 views (as of 2026-10-19) Description: Build IT Better is back with Tracy Lee and Ben Lesh, featuring David Khourshid from XState and Stately! David will be sharing the challenges in implementing XState in Angular, and SolidJS and will walk us through what XState is, and how to use it in different libraries. He'll also discuss the nuances and trade-offs in choosing technologies for building the diagraming tool for a state machine edito Key quotes from the transcript: - "A while ago, I created this library called XState, which makes it easy to visualize application logic written as state machines." (1:00) - "Where you actually have to manipulate things via drag and drop, you have to visualize things, you have a canvas to work on, the complexity goes way up, and, there's definitely no one-size-fits all." (8:00) - "SVG is really flexible, but of course it's a learning curve, and even back then I wasn't in SVG expert." (16:00) - "Of foreign object with HTML inside, he inverted that, so there was an HTML elements, with everything absolutely positioned as HTML elements inside, and then inside those HTML elements were separate SVG elements." (20:00) - "I think it's always just been a great way for, I like, recommended XState when I talk about building an inclusive development teams, because it kind of takes the pressure off of, you know, an architect or somebody." (29:00) ## Adiós, useEffect: Managing Effects More Effectively URL: https://davidk.dev/talks/adios-useeffect-managing-effects-more-effectively/ · Video: https://www.youtube.com/watch?v=8O8QqbWAlzw Conference talk · React Alicante 2022 · 2022 · 42:29 · 673 views (as of 2026-10-19) Key quotes from the transcript: - "If we add some things to the dependency array, and so whenever those things change, then our effects that we use to putting a component did update, go inside useEffects and then our component will unmount." (4:00) - "Instead of thinking that the next state comes from the current state and the event that happens, we can say that the effects come from the current state." (16:00) - "Just because we think that useEffect is the right place to calculate derived data instead, honestly, just do it right in the components, you don't need useEffect." (21:00) - "You notice that every arrow that's coming from this full video state is going to execute the pause video effects." (29:00) - "The React beta docs have a section on what you should do instead of just fetching data inside of your useEffect." (40:00) ## Coding Complex App Logic, Visually URL: https://davidk.dev/talks/coding-complex-app-logic-visually/ · Video: https://www.youtube.com/watch?v=_B7n995Nnj0 Conference talk · Øredev 2022 · 2022 · 39:53 · 2,630 views (as of 2026-10-19) Description: Session description: What if you could code without coding? As the number of features and requirements increase in our apps, text-based logic becomes much more complex to understand, change, and test. Using visual event-driven state modeling with state machines and statecharts orchestrates this logic in a simpler way. In this talk, you will learn about new tools and techniques for managing and edi Key quotes from the transcript: - "By using something called a visual formalism, we could actually make it a lot easier to code this complex app logic." (0:00) - "At the very least, model your application logic using events instead of directly manipulating the states." (18:00) - "One of my favorite is Dijkstra's shortest path algorithm, so because you're expressing your app logic as a directed graph." (23:00) - "Instead of directly creating the state machine over here, we are, or, sorry, instead of working with the same machine over here, we're going to be creating a state machine." (31:00) - "In general, whether you're coding, you know, just front end, back-end applications, no matter how much complexity there is." (39:00) ## Goodbye, useEffect URL: https://davidk.dev/talks/goodbye-useeffect/ · Video: https://www.youtube.com/watch?v=bGzanfKVFeU Conference talk · React Brussels 2022 · 2022 · 29:58 · 516,089 views (as of 2026-10-19) Description: From fetching data to fighting with imperative APIs, side effects are one of the biggest sources of frustration in web app development. And let’s be honest, putting everything in useEffect hooks doesn’t help much. Thankfully, there is a science (well, math) to side effects, formalized in state machines and statecharts, that can help us visually model and understand how to declaratively orchestrate Key quotes from the transcript: - "Dan Abramov even said that the mental model of useEffect is synchronization, not life cycle." (3:00) - "You should not be setting state, or at least you should avoid setting state inside of useEffect, and also don't forget that dependency array, it's extremely important." (14:00) - "Instead of useEffect and summary, you should either useQuery, or use a hook like that, or use a framework, or, use another hook." (19:00) - "Instead of this, you could just put it inside of a side or a side effect inside of the event handler, so this is on submit right over here." (22:00) ## Using useEffect Effectively URL: https://davidk.dev/talks/using-useeffect-effectively/ · Video: https://www.youtube.com/watch?v=eFGeStq8dZo Conference talk · React Advanced London 2022 · 2022 · 24:23 · 7,530 views (as of 2026-10-19) Description: Check out FAQ on this content, shortened version and extra resources for this talk at Key quotes from the transcript: - "We have used effects, so I remember I learned about useEffect in 2018 and I was very excited to use it." (1:00) - "The real mental model is you want to put your fire and forget your action effects as close as possible to the events that would have caused the effect." (9:00) - "You don't need useEffect for fetching data, like we talked about at the beginning, that was one of the big reasons that we used useEffect." (17:00) - "UseEffect is for synchronization, activity effects go and useEffects action effects go in event handlers." (23:00) ## The two types of state management URL: https://davidk.dev/talks/the-two-types-of-state-management/ · Video: https://www.youtube.com/watch?v=JevYDCy5HzA Conference talk · React Finland 2022 · 2022 · 23:23 · 3,928 views (as of 2026-10-19) Description: All state management libraries and techniques can be categorized in two ways. One is easy, one is simple. One is quick, one is maintainable. From state mutation to statecharts, let's explore the various ways developers manage state and learn how we can choose the best strategy for efficient, robust state state management for different use-cases, and discover what these two categories are. Key quotes from the transcript: - "My goal here today is to help you choose the best state management." (1:00) - "If you've ever done any sort of state management with context before, you're going to get bitten by the fact that components are going to re-render unnecessarily." (7:00) - "Different state management libraries have different ways of managing effects, but the other important thing I want to tell you is that effect management is state management." (15:00) - "You could map your requirements to code like this is what I would suggest for whatever state management solution you choose, basically, have a very clear mapping of the user stories." (21:00) ## XState and Stately (devtools.fm) URL: https://davidk.dev/talks/xstate-and-stately-devtools-fm/ · Video: https://www.youtube.com/watch?v=bO2_VQWy6Pg Podcast · devtools.fm podcast · 2022 · 42:59 · 1,285 views (as of 2026-10-19) Description: This week we talk to David Khourshid, the founder of stately.ai, a company that is building a state machine visualizer and debugger. David is also the creator of x-state, a JavaScript library for state machines. We talk about the history of x-state, how it works, and how it change your code. We also talk about the future of state machines and how they can be used in the real world. Key quotes from the transcript: - "Hey everyone, I'm really excited today to welcome David Khourshid the founder of Stately and the creator of XState." (1:00) - "Statecharts, I want everyone to know that they're technically still state machines, but they also allow you to represent logic visually that scales for pretty much any level of complexity, which is a limitation of state machines." (3:00) - "When, when I first created XState I was mainly a front end developer." (18:00) - "First of all, it allows you to express your logic using state machines and statecharts, which allow you to, you know, to statically analyze, your entire logic." (29:00) - "Anything that you could represent in a directed graph, which surprise there's a lot of things that could be represented as directed graphs, you should be able to, express in and to create in the Stately studio, we call it." (31:00) ## Is Visual Coding Ready for Prime Time? URL: https://davidk.dev/talks/is-visual-coding-ready-for-prime-time/ · Video: https://www.youtube.com/watch?v=eA4oGk6ePPQ Interview · Builder.io · 2022 · 1:07:47 · 802 views (as of 2026-10-19) Description: Steve Sewell, CEO & Co-founder of Builder.io, and David Khourshid, Founder of Stately.ai, discuss visual coding and its readiness for the mainstream. Key quotes from the transcript: - "Long story short is that we really want to build a tool that allows you to diagram executable models of your application logic at any level of complexity." (14:00) - "The future I see is that, these low code, no code tools, or I'm not even going to use that term, I'm going to use visual tools." (21:00) - "First of all, they were focused on code generation, which sounds like a good idea, but code generation is very much a here's a code, don't touch it like this is read only code, essentially." (28:00) - "Flow-based programming is closer to the actor model, where each of these nodes are actors, so just entities that do something." (40:00) - "Instead of writing all these tests manually, you write a state machine that describes, how your application is supposed to behave." (46:00) - "Even though you're like, oh yeah, just manipulating the state, like, couldn't be easier, so that's why XState sort of takes the approach where you can't directly manipulate the state." (54:00) ## Use XState With Netlify Edge Functions URL: https://davidk.dev/talks/use-xstate-with-netlify-edge-functions/ · Video: https://www.youtube.com/watch?v=sAtonzSZ8HM Livestream · Learn With Jason (CodeTV) · 2022 · 1:22:40 · 2,218 views (as of 2026-10-19) Description: State machines at the edge? Yes please! David Khourshid is back to show us how to deploy and visualize workflows in real-time! Key quotes from the transcript: - "You were talking about building a state machine that runs at the edge, so in Netlify edge functions, and we're going to power that with PlanetScale's new serverless database driver." (5:00) - "DAVID: Yeah, so we've done the hello world with Netlify edge functions, so let's do a simple hello world with XState." (15:00) - "JASON: That way we send an event of next and it loops around." (43:00) - "What we did was we used the XState state machine library and built a machine here that's a traffic light." (1:05:00) - "DAVID: Yeah, so long term at Stately, what we really want to do is have the visual editor able to be like -- if you want to create a state machine, you should be able to just press deploy." (1:10:00) - "JASON: And the fact this is fully visual in the sense that I want a new state, I just double click in here." (1:16:00) ## Goodbye, useEffect (ReactNext 2022) URL: https://davidk.dev/talks/goodbye-useeffect-reactnext-2022/ · Video: https://www.youtube.com/watch?v=RW9TVhmxu6Q Conference talk · ReactNext 2022 (Israel) · 2022 · 30:27 · 10,584 views (as of 2026-10-19) Key quotes from the transcript: - "We have useEffect, where we put a component in mount with an empty dependency array." (3:00) - "Some of you might be saying that, yes, we have to use a useEffect hook for this, because it's the declarative way of doing effects." (6:00) - "The idea is that useEffect needs to be able to unmount and remount, and so stop and restart that effect so that everything stays in sync." (12:00) - "You can imagine that this used checkout form is actually executing effect effects when the event happens, instead of wrapping it in useEffect." (21:00) - "Just you don't need to put this in useEffect, so in summary, in hopefully in 20 seconds, useEffect is for synchronization." (29:00) ## Guild Podcast Episode 14 URL: https://davidk.dev/talks/guild-podcast-episode-14/ · Video: https://www.youtube.com/watch?v=z-qEEMszBIA Podcast · Guild podcast, Episode 14 · 2022 · 12:31 · 119 views (as of 2026-10-19) Key quotes from the transcript: - "The idea is that you auto-generate them instead, if you have a state machine, which you could think of as like a big ass flowchart, where it describes your entire app." (4:00) - "You know, you have these auto generated tests, you have state machines, which naturally prevents invalid states and transitions and things like that." (7:00) - "As David said, being able to map those inputs to outputs in a nice visual manner with a state machine is kind of intrinsic." (9:00) ## Coding Complex App Logic, Visually URL: https://davidk.dev/talks/coding-complex-app-logic-visually-renderatl-2022/ · Video: https://www.youtube.com/watch?v=fDheg8lQif8 Conference talk · RenderATL 2022 · 2022 · 15:29 · 256 views (as of 2026-10-19) Description: You’re not going to want to miss what David had to say at Render 2022. As features and requirements increase, code gets more complicated. Learn about how state machines can manage complexity at scale, in a visual way. Don’t miss what Render is doing next. Make sure you’re following @renderatl for updates! Key quotes from the transcript: - "The reality is that we do use code loco tools more often than we think." (3:00) - "With the intention of allowing you to code as much as you can visually, but also letting you jump directly into the code." (9:00) - "When you log in, if you have the correct credentials, you know, obviously you should be in the logged in state." (11:00) - "When it comes to balancing abstraction versus complexity, we could see how low code, whether you want to call it low code or visually augmented code, or whatever." (14:00) ## Goodbye, useEffect URL: https://davidk.dev/talks/goodbye-useeffect-reactathon-2022/ · Video: https://www.youtube.com/watch?v=HPoC-k7Rxwo Conference talk · Reactathon 2022 · 2022 · 26:00 · 240,191 views (as of 2026-10-19) Key quotes from the transcript: - "One of the reasons why we tend to use useEffect is because the imperative approach to doing effects is when something happens, execute this effect." (6:00) - "The problem is when we put effects inside of our components, like rendering life cycle, then we run into the problem." (12:00) - "Hey, this effect is supposed to be executed when we transition from this state to the other state, and these effects aren't executed by the way." (15:00) - "Inside of useEffect and other state management and React libraries work actually the same way, where basically you're delegating control of the effects over to those libraries instead of you having to do it yourself." (19:00) ## Collaborative App Logic (Real World React) URL: https://davidk.dev/talks/collaborative-app-logic-real-world-react/ · Video: https://www.youtube.com/watch?v=wyHs9vSxpjQ Conference talk · Real World React meetup · 2022 · 55:41 · 337 views (as of 2026-10-19) Description: Tracy Lee: How to Get Involved in Open Source: A Quickstart Guide How do you get involved in open source? This is a question I get asked a lot, and surprisingly, it's not as difficult as you may think. In this talk we'll discuss the WHY and HOW related to open source contributions, and also touch on the DOs and DONTs so you can be successful today! Key quotes from the transcript: - "[Music] Hello and welcome to the React world tour, the new York JS React Edition." (0:00) - "I got excited about open source, and then I was just like, Yolo, I'm gonna start." (17:00) - "If we consider, like the different states in this very simple application, we essentially want a mini video player." (27:00) - "We also wanted to go back to Mini, so that is our full logic, and again, we could simulate that so we could say, okay, we're in the full state." (40:00) - "I mentioned model based testing because you could use state machines to verify the behavior of your app and not use them directly in the application logic." (53:00) ## Visually Create State Machines URL: https://davidk.dev/talks/visually-create-state-machines/ · Video: https://www.youtube.com/watch?v=RYQ_HG7vVZw Livestream · Learn With Jason (CodeTV) · 2022 · 1:19:20 · 3,364 views (as of 2026-10-19) Description: Visualizing app logic is a game changer. In this episode, David Khourshid will teach us how Stately lets us visually create state machines and statecharts, then use them directly in React js apps. Key quotes from the transcript: - "What we're saying, we can visualize the code in a diagram, so we have a visual output that's always going to be in sync with the code." (7:00) - "An app that's really simple and doesn't need a concept of different modes or anything like that, then you don't need a state machine." (15:00) - "DAVID: Okay, you just made a state machine visually in a few seconds." (31:00) - "If you want to color the win state green and the lose state red, you should be able to do that." (40:00) - "JASON: I think the question is around pulling out the edited application code to build a visualization on every PR." (1:03:00) - "Just understanding problems in terms of state machines makes things a lot easier." (1:13:00) ## Modeling Application Logic Visually URL: https://davidk.dev/talks/modeling-application-logic-visually/ · Video: https://www.youtube.com/watch?v=E_pBY6sO2ug Conference talk · Certified Fresh Events · 2022 · 42:23 · 577 views (as of 2026-10-19) Description: As the number of features and use-cases in our apps increase, the logic gets much more complicated to understand and change. In this session, we’ll learn how state machines and statecharts (visual formalisms for logic) can help us understand even the most complex of app logic in a clear and visual way, and how we can integrate them in our apps to make features easier to add and eliminate bugs by m Key quotes from the transcript: - "The reason that I'm interested in this is because application logic can get hairy, especially as you add more features and more requirements and specifications." (0:00) - "In our video player, we actually have a I'm just going to call it closed and open states here one minute, or actually, let's call it, mini and full." (8:00) - "When you see, there's a lot of transitions and every single one of these transitions going into the full state plays a video." (19:00) - "An overview of how XState can help you visualize and visually creates your application logic." (24:00) - "Some people might want to just like, put this play video action on toggle and put pause video on this toggle that goes out to Mini." (33:00) ## Modeling Application Logic Visually (Extended Session) URL: https://davidk.dev/talks/modeling-application-logic-visually-extended-session/ · Video: https://www.youtube.com/watch?v=im9VegkTl-E Conference talk · Certified Fresh Events · 2022 · 47:13 · 42 views (as of 2026-10-19) Description: Web applications continue to get more complex, which can lead to code that is complex and difficult to untangle. Thankfully, new patterns and tools are emerging to help web application developers deal with and organize that complexity. In this session, David Khourshid will how state machines and statecharts can help developers make even the most complex of app logic clear. Key quotes from the transcript: - "When we're in the mini states and the toggle event happens now, we go to the full states again." (14:00) - "I could have put play video over here, and so whenever this transition is taken, it's going to play the video and go into the full states." (23:00) - "An overview of how XState can help you visualize and visually create your application logic." (29:00) - "You can, honestly, this state modeling, or like modeling your application logic is more of." (38:00) - "Instead of saying that this toggle is an async transition, because that's not something that exists, you would have a state that represents that in between states." (43:00) ## What’s Next for XState? URL: https://davidk.dev/talks/whats-next-for-xstate/ · Video: https://www.youtube.com/watch?v=bP7PCo2DJ_M Conference talk · ReactNext 2021 · 2021 · 28:19 · 510 views (as of 2026-10-19) Key quotes from the transcript: - "The idea is that your app can only be in one of these states at a time, and each one of these states can handle events a little bit differently." (3:00) - "If you pass in a machine to useMachine, you get the current states and you get a send function which allows you to send events." (10:00) - "The idea is that there is now a special event called XState.input, and any event starting with X8Thot is an XState specific event." (13:00) - "You know, just as we explored new ideas that XState and state machines and statecharts enable." (25:00) ## Live with the Founder of Stately.ai URL: https://davidk.dev/talks/live-with-the-founder-of-stately-ai/ · Video: https://www.youtube.com/watch?v=8rPb0Huooro Interview · The Unicorn Finders (live) · 2022 · 30:22 · 59 views (as of 2026-10-19) Description: David is Founder/CEO of a low code solution. He is former Microsoft and left to start a solution to make even the most complex application login visual and accessible to developers and non developers alike. Statey.ai is unique because it's filling a gap in the industry and providing intuitive, visual solutions to problems that virtually every tech company eventually faces. Key quotes from the transcript: - "For the people who are watching us are like, low code, and then I think Dan off air was like, then there's lower code and then there's no code." (8:00) - "I had a couple of investors actually message me and say, Hey, you should really consider making this into an actual product." (11:00) - "I think about like, a year and a half ago, about like, hey, you should turn this into a product." (13:00) - "Was at Microsoft, contributing to this XState tech, this open source community started to build up, you know, connections community." (18:00) - "Man, it seems like you've not only got a great product, but, you know, a product that can make sense at any company." (29:00) ## XState: Making Application Logic Visually Collaborative URL: https://davidk.dev/talks/xstate-making-application-logic-visually-collaborative/ · Video: https://www.youtube.com/watch?v=2ZHhmaz6kzo Conference talk · Norfolk Developers meetup · 2021 · 44:05 · 1,243 views (as of 2026-10-19) Description: # Join us as we chat XState, State Machines & modelling logic Key quotes from the transcript: - "Going to be talking about XState and state machines, making application logic visually collaborative." (0:00) - "Imagine creating a visual formalism for logic that you could just code this directly, as is." (17:00) - "Anyway, I created XState in order to make it a lot easier to create these state machines and states charts." (23:00) - "I mean, you're essentially creating a directed graph of your application logic." (30:00) - "With XState, you make those different behaviors explicit, you say there is a loading state, there is a success state, and the application behaves differently in each of those states." (34:00) ## XState Fundamentals (JavaScript Marathon) URL: https://davidk.dev/talks/xstate-fundamentals-javascript-marathon/ · Video: https://www.youtube.com/watch?v=BJfeWEPBZXQ Workshop · JavaScript Marathon (This Dot Media) · 2021 · 1:26:30 · 4,674 views (as of 2026-10-19) Key quotes from the transcript: - "If anyone has any questions on what we've done so far to just like, think about the events and how we would model, this sample media player application." (10:00) - "When the play event happens again by the user, we transition from pause to playing." (19:00) - "Where we're not really going to be doing the skip song thing, we're going to be focusing on, play and pause." (24:00) - "All these are just sending the exact same events, so if I press play now, we're in the playing state." (30:00) - "You start to notice a pattern, you see that every single transition that comes into the playing states starts the player." (48:00) - "Actually, instead of using Star player and stop player, we're going to be more methodical about this." (1:03:00) ## Animations: Use CSS or CSS-in-JS? URL: https://davidk.dev/talks/animations-use-css-or-css-in-js/ · Video: https://www.youtube.com/watch?v=BuNksQ5PkxM Interview · Prismic · 2021 · 9:22 · 779 views (as of 2026-10-19) Description: We can be tempted to only animate using CSS but there are times where you would want to use CSS in Javascript for animations in order to control your animations. Key quotes from the transcript: - "There are times where you would wanna use JavaScript animations, and maybe even some JavaScript framework in order to control those animations." (1:00) - "Usually, with things dynamics, such as that people will quickly realize, okay, there's just absolutely no way I could do this with CSS." (3:00) - "In like years ago, when I tried to do clip animations with transform, like where you would use the clip path property, and then transform it, browsers didn't like that at all." (8:00) ## CSS Variables, Flexbox and CSS Grid: When to Use Them URL: https://davidk.dev/talks/css-variables-flexbox-and-css-grid-when-to-use-them/ · Video: https://www.youtube.com/watch?v=gUj1mMfhozM Interview · Prismic · 2021 · 10:18 · 501 views (as of 2026-10-19) Description: It can be confusing when to use CSS Grid or Flexbox. CSS Grid are best for the bigger layout items while Flexbox is good for dynamic items. Key quotes from the transcript: - "With CSS variables, instead of that, all you have to do is set the CSS variable on some elements or some container or something." (3:00) - "Whereas if you have a CSS variable, now it's dynamic, you could change it at any time using JavaScript. - nice." (4:00) - "In my opinion, CSS grid would be a better choice, because then you could define this image should to take up exactly this space." (7:00) ## Making Application Logic Visually Collaborative (Infobip Shift) URL: https://davidk.dev/talks/making-application-logic-visually-collaborative-infobip-shift/ · Video: https://www.youtube.com/watch?v=ubFj_QfNCL8 Conference talk · Infobip Shift 2021 · 2021 · 27:18 · 651 views (as of 2026-10-19) Description: Logic is much more than just code. It is the user flows, the diagrams, the user stories, and the business logic that are shared with developers, designers, project managers, and other stakeholders. In this talk, we'll explore tools and techniques for unlocking application logic and making it acce Key quotes from the transcript: - "We do this via code, and so the computer reads that code, and that code is supposed to represent the application logic that we want." (2:00) - "We have portable application logic, we have visual application logic, and we have executable application logic that we could use pretty much anywhere." (8:00) - "Instead of just having your application logic live in your code within your team, you could share it and you could visualize it." (23:00) - "Anyway, diagrams are extremely useful for you to understand your application logic and your business logic at a glance, but ultimately, we do want diagrams extracted from code." (25:00) ## How to Model Animations Using Data Attributes URL: https://davidk.dev/talks/how-to-model-animations-using-data-attributes/ · Video: https://www.youtube.com/watch?v=aTuvi26wILg Interview · Prismic · 2021 · 12:13 · 565 views (as of 2026-10-19) Description: When creating animations, data attributes are useful because they are flexible and easy to manipulate with JavaScript. Key quotes from the transcript: - "Can you explain it. - so a finite state machine takes that idea of only one state at a time, and it expands a little bit more." (3:00) - "Even on the off chance that we have both loading and success, that selector will still never be matched because we're looking for it to exactly be loading. - Okay, nice." (5:00) - "I also wrote a library called XState, which helps you with more advanced finite state machines and statecharts, which are nested hierarchical state machines, they're a little bit more advanced." (11:00) ## The State of XState URL: https://davidk.dev/talks/the-state-of-xstate/ · Video: https://www.youtube.com/watch?v=Q05jcu9N98g Conference talk · React Finland 2021 · 2021 · 18:37 · 1,970 views (as of 2026-10-19) Description: Over the past few years, state machines, statecharts, and the actor model have proven to be viable concepts for building complex application logic in a clear, visual way with XState. In this talk, we'll take a peek into the future of XState, including new features in the next version, and new tools and services that will make it even easier to create and collaborate on state machines. Key quotes from the transcript: - "I've talked about XState and state management, state machines a lot in the past and in the last year, a lot has happened." (0:00) - "All those, I feel like all of those fit into the state management bucket, and what I mean by state management is these are all really good libraries." (2:00) - "If you're using XState with TypeScript, I highly recommend you use create model because we also have some new things and improvements coming with create model in the future." (4:00) - "We don't have to build specific integrations with every single popular library out there, everything is just an event." (16:00) ## JS Party #191 Live! URL: https://davidk.dev/talks/js-party-191-live/ · Video: https://www.youtube.com/watch?v=ThRml413Nf8 Podcast · JS Party #191 Live (Changelog) · 2021 · 1:13:58 · 143 views (as of 2026-10-19) Key quotes from the transcript: - "You have this, actor model where you have individual actors, where you could think of them like class instances, or just like things that you could send messages to." (18:00) - "You have like this hierarchy of actors, where again, this is not global state like Redux, but you have like a global orchestrating actor." (23:00) - "Actors exhibit state machine behavior, whether it's implicit or explicit, just because state machines and actors go really well together." (30:00) - "I think when it comes to stuff like routing and application state, one of the nice things that you can get with a state machine approach is it." (50:00) - "Is, if that's all, it's ever going to be probably simpler than incorporating a state machine." (1:01:00) - "You might be either happy or sad to know that there is no such thing as middleware in the next state, and there never will be." (1:06:00) ## XState: The Visual Future of State Management (React fwdays) URL: https://davidk.dev/talks/xstate-the-visual-future-of-state-management-react-fwdays/ · Video: https://www.youtube.com/watch?v=4Mue0Qr_apE Conference talk · React fwdays 2021 (online) · 2021 · 30:44 · 5,668 views (as of 2026-10-19) Description: This is a video from the React fwdays'21 online conference, that was held on March 27, 2021. Key quotes from the transcript: - "Let's talk about what a finite state machine is, and how we could translate that to a more rigorous visual formalism." (3:00) - "We see that it could go to editing on the edit event now, this is important because the edit event might have actions or side effects, or things that you might want to do." (11:00) - "The first thing we provide is the initial states, which is reading, and then we have our different states here, we have states reading and editing." (15:00) - "You see that the cancel event happened, and you also see the state machine changing in real time as these events occur." (22:00) - "You could also learn how to model state with React and XState, both of those on Frontend Masters." (24:00) ## XState: the Visual Future of State Management URL: https://davidk.dev/talks/xstate-the-visual-future-of-state-management/ · Video: https://www.youtube.com/watch?v=2oCftlUlMhs Conference talk · React Summit Remote Edition 2021 · 2021 · 27:00 · 2,127 views (as of 2026-10-19) Key quotes from the transcript: - "I want to talk to you today about the visual future of state management and how XState is going to bring that future vision to reality." (0:00) - "All of those are events, and thinking about your app in terms of state and events really simplifies the mental model, at least in my opinion." (4:00) - "The goal of these features is largely to make it easier to specify and type context events." (14:00) - "XState version 5 greatly simplifies this and says, instead of special casing those things." (20:00) ## Build Better Apps with State Machines URL: https://davidk.dev/talks/build-better-apps-with-state-machines/ · Video: https://www.youtube.com/watch?v=onEGFGNHEV0 Livestream · Learn With Jason (CodeTV) · 2021 · 1:23:12 · 7,368 views (as of 2026-10-19) Description: Using state machines, we can build web apps with low complexity and high confidence. David Khourshid will show us how xstate helps us make sense of state management in web apps. Key quotes from the transcript: - "Finite state machines just allow you to encode that in a very deterministic and visual way." (4:00) - "One of the things that I think is really powerful about XState that I've never seen in anything else, is the fact that you can visually think through how state machines work." (19:00) - "By describing logic and state machines and statecharts, you do have that common language." (46:00) - "If you learn state machines, you know, it sort of, is useful in many different places." (1:00:00) - "You don't need a library for state machines, it's the title of that, and that's because you don't, at least for simple state machines." (1:11:00) - "You could follow me on Twitter because I tweet about state machines way too much." (1:18:00) ## Building State Machines Using XState (Modern Web Podcast) URL: https://davidk.dev/talks/building-state-machines-using-xstate-modern-web-podcast/ · Video: https://www.youtube.com/watch?v=uLlQjp5u2KQ Podcast · Modern Web Podcast S07E20 · 2021 · 47:21 · 562 views (as of 2026-10-19) Description: In this podcast episode, Rob Ocel (@robocell) chats with David Khourshid (@DavidKPiano), software engineer at Microsoft and creator of XState! Key quotes from the transcript: - "Sure, so, XState is a library that allows you to make and implement state machines and statecharts in JavaScript." (2:00) - "XState certainly is that, but I've always seen XState as being more analogous to a library such as, RxJS." (9:00) - "If you've never used X8 in a library, just using the modeling tool to draw these state machines and using that in your design documentation, that's just a value-add period." (18:00) - "Just the idea that your application is made up of these state machines, and you should start thinking in terms of state machines, instead of whatever ad hoc logic we were doing." (23:00) - "What that means is that XState could theoretically create state machines." (38:00) ## Putting the "Act" in Reactive: From Observables to Actors URL: https://davidk.dev/talks/putting-the-act-in-reactive-from-observables-to-actors/ · Video: https://www.youtube.com/watch?v=lnmDFEriZ7Q Conference talk · RxJS Live! London · 2021 · 38:31 · 1,573 views (as of 2026-10-19) Description: Can a half-century-old model of computation reduce complexity, improve performance, and make our applications exponentially more scalable and visually clear? The Actor Model can hold the key to simplifying the reactive apps we work on. Learn how RxJS observables and state machines can be used together make our apps more predictable, faster, and testable, with plenty of demos that will inspire you Key quotes from the transcript: - "You know, we could represent observables as actors, and I haven't really seen too many people talk about that, so that's why I wanted to talk about that today." (5:00) - "Let's take the actors that will call them individually, you could think of these as entities, but you know, we're talking about the actor model, so I'm going to call them actors." (9:00) - "An actor can be thought of as an entity that can send or receive messages, so they react to messages, meaning that when they get a message, and only when they get a message, they can do something." (11:00) - "You can also send a reference of an actor to some other actor so that the actor you send a message to can communicate with that actor." (18:00) - "Just like an actor can only send messages to other actors via their address, and so, just like an email inbox." (22:00) ## React Wednesdays: XState and JavaScript State Machines URL: https://davidk.dev/talks/react-wednesdays-xstate-and-javascript-state-machines/ · Video: https://www.youtube.com/watch?v=1TT2ymkYGyM Livestream · React Wednesdays (Kendo UI) · 2020 · 1:09:05 · 788 views (as of 2026-10-19) Description: On this episode of React Wednesdays, an epic star-studded cast talks about XState, a project helping you build state machines, and how you can use them in your application development, and why they're important to know about. Key quotes from the transcript: - "Maybe you could just set the stage for us, as if for people that are joining that have no idea what state machines even are, or why you might use them, or what XState even is." (1:00) - "State machines just takes that one step further, where instead of doing an event first approach, you do a state first approach." (6:00) - "What I'm going to do is I'm going to use XState, which is the library I created for making finite state machines and statecharts." (16:00) - "If we have the logic where if we're in the saving state and we toggle again, we go to inactive, then we see that." (23:00) - "While it's an actor model, it's also like you can think of it as a very primitive state machine." (32:00) - "Cypress is a testing library, and this uses XState and state machines all over the place." (51:00) ## Panel: State Management (React Finland Mini-Conf #2) URL: https://davidk.dev/talks/panel-state-management-react-finland-mini-conf-2/ · Video: https://www.youtube.com/watch?v=jeBMGCanIvU Panel · React Finland Mini-Conference #2 (2020) · 2020 · 24:01 · 150 views (as of 2026-10-19) Description: In this panel discussion, Sara Vieira (the MC), Yan Lavryushev, David Khourshid, Christian Alfoni, Juho Vepsäläinen, and Holly Gibson discuss state management. Key quotes from the transcript: - "As Christian knows, as I know, as anyone who's worked on, you know, a like state management at scale." (3:00) - "You basically have to implement the state management to yourself, like it's so, if that makes sense, so like they give you an object and they tell you like, this will." (6:00) - "I like, I talked about earlier today, the problem isn't, the problem with state management isn't." (12:00) - "You see potential in using workers for state management, or pushing logic and state outside of React and into outside of main thread, into something else, something that's living outside." (15:00) ## Introduction to statecharts URL: https://davidk.dev/talks/introduction-to-statecharts/ · Video: https://www.youtube.com/watch?v=_umnF7gpbfg Conference talk · React Finland Mini-Conference #2 (2020) · 2020 · 44:07 · 1,298 views (as of 2026-10-19) Description: In his demonstration, David Khourshid gives us an introduction to statecharts through a practical example using xstate and React. Key quotes from the transcript: - "X8 is a state machine and statechart library, which might be a little bit different if you're coming from something like Redux or MobX, or any of these other state management libraries." (0:00) - "What's going to happen here is when I'm in the idle state in a mouse down event happens." (6:00) - "If we're dragging it and I press shift now, I can only drag it in one axis, and if I lift shift now goes back to normal." (23:00) - "Learning about state machines and statecharts really makes you think about your state in a more robust way." (29:00) - "UseReducer, probably my favorite hook to use for state management, you would, you would, say, that you never really use your state." (38:00) ## Everything is an Actor URL: https://davidk.dev/talks/everything-is-an-actor/ · Video: https://www.youtube.com/watch?v=NTfPtYJORck Conference talk · React Finland Mini-Conference #2 (2020) · 2020 · 44:49 · 11,042 views (as of 2026-10-19) Key quotes from the transcript: - "We don't want to model absolutely everything as actors, and since all computation can become, can be performed within an actor, it can also contain its own behavior and state." (10:00) - "You can send a reference of another actor to some actor so that the actor you send the message to can communicate with that actor." (13:00) - "In some implementations, like Akka, every single actor from the root actor has exactly one parent." (17:00) - "XD can also invoke and spawn child actors, and so invoking an actor is done." (23:00) - "The main idea is that you will create some sort of parents actor using used machine." (32:00) ## React Finland Mini-Conference #2: State Management (full stream) URL: https://davidk.dev/talks/react-finland-mini-conference-2-state-management-full-stream/ · Video: https://www.youtube.com/watch?v=CFe6rMUxpoM Conference talk · React Finland Mini-Conference #2 (2020) · 2020 · 3:47:35 · 907 views (as of 2026-10-19) Description: See for the exact schedule. The public portion begins 17:30 and the first talk at 17.45 (Finnish time). Key quotes from the transcript: - "You should keep in mind that when you're doing development and the last point is the future of the state management." (50:00) - "As any entity that can send or receive messages so an actor can react to messages, meaning that when they get a message, and only when they." (1:27:00) - "An actor can also create or spawn a finite number of child actors, and these child actors are just like every other actor." (1:35:00) - "The main idea is that you will create some sort of parents actor using used machine." (1:54:00) - "I was supposed to talk about state management today, but I felt I had a more important story to talk about." (2:41:00) - "Instead of creating one class name per definition, we created the class name, Pert's unique CSS property value, Sudo, and so on." (2:59:00) ## Bus Factor, Pair Programming and VS Code Live Share URL: https://davidk.dev/talks/bus-factor-pair-programming-and-vs-code-live-share/ · Video: https://www.youtube.com/watch?v=IeR8Z19Mebg Interview · Fun Fun Function · 2020 · 7:30 · 4,614 views (as of 2026-10-19) Description: Educative.io helps you learn in-demand tech skills faster. Text-based courses with embedded coding environments mean you can jump in and learn without all the fluff – no set-up, no scrubbing back and forth through videos, no hassle. Get 10% off any course when you go through our link: Key quotes from the transcript: - "This particular video is about the bus factor and the value of pair programming and sharing knowledge in a team." (0:00) - "I tend to take the position that on sites teams are always better, however, and especially like one of the big reasons why I've held that position." (2:00) - "Remote work environments generally didn't gel very well with it until we had visual Studio live share." (3:00) ## How to Create Smooth, Lightweight Website Animations URL: https://davidk.dev/talks/how-to-create-smooth-lightweight-website-animations/ · Video: https://www.youtube.com/watch?v=aQiUkGli8ts Interview · Prismic · 2020 · 12:45 · 809 views (as of 2026-10-19) Description: David Khourshid stopped by the Prismic Studio to share some useful tips on how to create smooth and lightweight website animations. Key quotes from the transcript: - "CSS in the DOM is still going to check all of those elements again to see did the layout change." (1:00) - "If you think about it like in the block layout or something like that, when you scale something or you transform it, everything else stays the same." (4:00) - "Instead of just the text, or like the entire elements, the text saves alone, so the text is just going to move with the container elements." (9:00) ## Let's Pair Program State Machines and Statecharts URL: https://davidk.dev/talks/let-s-pair-program-state-machines-and-statecharts/ · Video: https://www.youtube.com/watch?v=uRfQJJArZEg Livestream · Fun Fun Function · 2020 · 59:06 · 23,160 views (as of 2026-10-19) Key quotes from the transcript: - "I always say that state machines are a good refactor target." (3:00) - "We could listen to on transition, which is going to give us the state, and so every single time that state changes." (18:00) - "All that's happening is that state value, like whether it's dragging or idle, it's going to be displayed directly on the body." (25:00) - "We could do that just for now, we could do that directly in on transition, because over here we receive the state context." (33:00) - "If since I'm putting all that state on data state, if I say data states equals dragging." (52:00) ## Write Fewer Tests! Model-Based Testing in React URL: https://davidk.dev/talks/write-fewer-tests-model-based-testing-in-react/ · Video: https://www.youtube.com/watch?v=pA3DXExjKqI Conference talk · React Conf AU 2020 · 2020 · 45:03 · 5,926 views (as of 2026-10-19) Description: What if you could automatically generate hundreds of integration and end-to-end tests, instead of manually coding them? Discover how model-based testing greatly improves the maintenance and coverage of your entire React app, uncovers elusive edge-cases, and stay in sync with ever-changing requirements. In this talk, you'll learn how abstract modeling with state machines saves tons of time in both Key quotes from the transcript: - "You know, unit tests are easy to write, but there's really no trophy for writing your unit tests." (3:00) - "We could just take this abstract model which does nothing on its own and we could tie both assertions and executions to them to make them executable tests." (9:00) - "Using React's testing library, jest and XState because XState is going to allow us to represent this as an abstract model." (12:00) - "We pass it in whatever sort of test objects that we want to pass in so that we could actually assert our tests within the state machine." (17:00) - "The idea of abstract modelling and modelbased testing, it doesn't matter what the implementation details are." (21:00) ## Model-based testing with state machines URL: https://davidk.dev/talks/model-based-testing-with-state-machines/ · Video: https://www.youtube.com/watch?v=LBBC-CiiPQY Conference talk · Web Zurich meetup · 2020 · 18:12 · 699 views (as of 2026-10-19) Description: Instead of writing your tests, generate them instead! Learn how model-based testing increases test coverage and reliability without having to write tons of tests. Key quotes from the transcript: - "What I want to talk to you today about is something called model-based testing, and it's a way to write fewer tests." (0:00) - "Once we do that, and once we generate all these tests that go from one state to the final state and go through all of these different paths." (6:00) - "We could basically determine how to get from one state, the initial states to every single other states, which is exactly what we want to test." (10:00) - "Testing library, but we could use Puppeteer as well as just an XState to actually automate these tests." (15:00) ## Mind-Reading with adaptive UIs URL: https://davidk.dev/talks/mind-reading-with-adaptive-uis/ · Video: https://www.youtube.com/watch?v=dLK2zW6c79c Conference talk · Agent Conf 2020 · 2020 · 37:24 · 272 views (as of 2026-10-19) Key quotes from the transcript: - "Information in order to create a better user experience by making the app more adaptive." (4:00) - "A better user experience might be instead clicking the delete button, having it say deleted, and then having the user have the option of clicking undo." (8:00) - "First, we have to create an abstract model of how our app behaves, then we have to measure transition analytics so between the states, we have to keep track of what the users are doing." (14:00) - "When we have this model, this full abstract model of our application, we could determine where users are most likely to go." (19:00) - "Adaptive design or development lets you create kind of a customized user interface for each user by using this machine learning." (29:00) ## Mind-Reading with Adaptive and Intelligent User Interfaces URL: https://davidk.dev/talks/mind-reading-with-adaptive-and-intelligent-user-interfaces/ · Video: https://www.youtube.com/watch?v=adO2crvd3fc Conference talk · JSDC Taiwan · 2020 · 37:24 · 974 views (as of 2026-10-19) Description: Mind-Reading with Adaptive and Intelligent User Interfaces - David Khourshid Key quotes from the transcript: - "We all know that developing user interfaces is actually pretty difficult, just because there's many things that can happen." (0:00) - "An adaptive user interface is a user interface that adapts to the user instead of the device, and if you remember from a long time ago, one example of an adaptive user interface is Clippy." (3:00) - "Use that to better support these analytics that drive these adaptive user interfaces." (7:00) - "I wants to improve this feedback form, but I want to do it in a way that's adaptive to the user." (16:00) - "Also, adaptive user interfaces are supposed to help the user, so not even involve a customer service person and just help the user itself." (36:00) ## From PHP to JavaScript and CSS Animations URL: https://davidk.dev/talks/from-php-to-javascript-and-css-animations/ · Video: https://www.youtube.com/watch?v=Z_EWfoqgKcc Interview · Prismic · 2020 · 13:30 · 659 views (as of 2026-10-19) Description: David Khourshid's programming journey: started working with HTML, CSS at music school when having to build his website to present himself as a musician. Got into animations afterward, as the creative space in frontend development, he could thrive in. Key quotes from the transcript: - "These are the kind of tricks like you do sometimes, that you have to do in CSS to make things look more fluid. - exactly, even if you, especially if you're doing animations where you're not using any JavaScript at all." (4:00) - "Of course, this kind of debate is interesting because animations are exciting, but still, you don't want to abuse that experience. - right, so in my personal opinion, it depends on the user." (6:00) - "With square too, everyone has interfaced with the square payment system at some point in their life, or at least a lot of people have, where it's just a very smooth enter your card, it shows you in nice animation." (10:00) ## Crafting Stateful Styles (dotCSS 2019) URL: https://davidk.dev/talks/crafting-stateful-styles-dotcss-2019/ · Video: https://www.youtube.com/watch?v=mqYdgTaY03M Conference talk · dotCSS 2019 (Paris) · 2019 · 18:25 · 1,882 views (as of 2026-10-19) Key quotes from the transcript: - "You could actually affect the styles within the app, and so you can imagine if you add more than one check box, you could have multiple different dynamic styles and different things showing in your application." (2:00) - "We had to find a scalable way to just not keep making the same mistakes that we were making before and actually find scalable patterns in order to have these, well, I call stateful styles, and so we did." (4:00) - "Doing this with data states means that you could do other things to really customize the styles of your stateful dynamic CSS." (10:00) - "First of all, we set the data state attribute on the application to what state were in, and then we remove all of the data." (13:00) ## Computer Science in Frontend Development? URL: https://davidk.dev/talks/computer-science-in-frontend-development/ · Video: https://www.youtube.com/watch?v=JDsiDOAZQN4 Panel · Fun Fun Function (at Nordic.js) · 2019 · 33:36 · 16,026 views (as of 2026-10-19) Key quotes from the transcript: - "She speaking about the value of computer science in front-end development and a bunch of other things in general." (0:00) - "As I mentioned earlier, my background is not computer science." (5:00) - "When you do understand like the base concepts in computing, which not necessarily are gonna be like algorithms per se or computer science things." (16:00) - "Everybody in this interview and they knew that it was the end of, like, a five hour long interview." (19:00) - "I've been digging into the actor model, which is the basis of so many distributed systems like Erlang, Elixir." (31:00) ## Mind Reading with Adaptive and Intelligent User Interfaces URL: https://davidk.dev/talks/mind-reading-with-adaptive-and-intelligent-user-interfaces-devfest-florida-2019/ · Video: https://www.youtube.com/watch?v=9YZfJtIf-2Y Conference talk · DevFest Florida 2019 · 2019 · 25:36 · 97 views (as of 2026-10-19) Description: What if you could predict user behavior with smart UIs? In this talk, we will explore how we can make adaptive and intelligent user interfaces that learn from how individual users use your apps, and personalize the interface and features just for them, in real-time. With probability-driven statecharts, decision trees, reinforcement learning and more, UIs can be developed in such a way that it auto Key quotes from the transcript: - "Whereas other users might need adaptive user interfaces to change and actually assist them, so developing these adaptive user interfaces is challenging for many reasons." (6:00) - "Let's create our adaptive user interface now that we know about weighted graphs." (15:00) - "Let's say that a user, or users in general, would go from state A to state B more often than going to C." (19:00) - "I owe and feed that back into the model to have adaptive transitions and in results, we have this adaptive UI that responds to user behavior in real time." (21:00) ## DevFest Florida 2019 Speaker Interviews URL: https://davidk.dev/talks/devfest-florida-2019-speaker-interviews/ · Video: https://www.youtube.com/watch?v=c9i9AxnJf04 Interview · Thunder Nerds (DevFest Florida 2019 speaker interviews) · 2019 · 22:16 · 66 views (as of 2026-10-19) Key quotes from the transcript: - "We built a CRM with Flutter and so, yeah, it, so this business to business application." (1:00) - "I went further and I was like, using model driven development, so it's state machines and statecharts." (6:00) - "Instead of like, relying on HTML and CSS, you're just saying declaring your UI on the web." (8:00) - "Instead of having a client, a server application, we're using the same application with different endpoints." (14:00) ## Mind-Reading with Intelligent & Adaptive UIs URL: https://davidk.dev/talks/mind-reading-with-intelligent-adaptive-uis/ · Video: https://www.youtube.com/watch?v=na1-RumWtxE Conference talk · ReactiveConf 2019 (Prague) · 2019 · 23:11 · 1,424 views (as of 2026-10-19) Description: ------------------------------------------------------------------- What if you could predict user behavior with smart UIs? In this talk, we will explore how we can make adaptive and intelligent user interfaces that learn from how individual users use your apps, and personalize the interface and features just fo Key quotes from the transcript: - "Today, on Halloween, which is why I'm wearing this costume, I'm gonna be talking to you about mind-reading with intelligence and adaptive user interfaces." (0:00) - "The adaptive user interface can detect that and actually provide that guidance and help them achieve the same goals." (5:00) - "We want to create an adaptive user interface, so here's a game plan." (9:00) - "We could feed that into our environments, which is the abstract model that we've created, and use that to sort of adapt the user interface in real time." (15:00) ## Crafting Stateful Styles with State Machines URL: https://davidk.dev/talks/crafting-stateful-styles-with-state-machines/ · Video: https://www.youtube.com/watch?v=0cqeGeC98MA Conference talk · CSSConf Budapest 2019 · 2019 · 28:51 · 9,894 views (as of 2026-10-19) Key quotes from the transcript: - "See how we could craft stateful styles with state machines, which Mike talked about at the very beginning." (0:00) - "Easily see all these possible states and be able to know how states change from one state to another in our app." (7:00) - "Statecharts extend the idea of state machines by adding things such as actions, whether you're entering state, exiting a state, or performing a transition between states." (20:00) - "Instead of instead of structuring it in a nice modeled way, it increases linearly, but, as we saw, finite state machines can increase exponentially." (27:00) ## Mind-Reading with Adaptive and Intelligent User Interfaces URL: https://davidk.dev/talks/mind-reading-with-adaptive-and-intelligent-user-interfaces-nordic-js-2019/ · Video: https://www.youtube.com/watch?v=e69vvcqxj6U Conference talk · Nordic.js 2019 · 2019 · 24:23 · 2,596 views (as of 2026-10-19) Key quotes from the transcript: - "I was here two years ago and I was talking about user interface animations, and now I'm going to be talking to you about the future of user interfaces." (0:00) - "Power users, whereas other users might need more help in adaptive user interfaces can recognize those users and be able to provide them assistive steps." (5:00) - "We could feed this into this reinforcement loop and improve our analytics over time in order to create adaptive user interfaces that learn from the users based on data that's fed." (19:00) - "I just released a testing library and I'm going to soon be releasing in analytics library to help out with creating all of these analytics and adding adaptive user interfaces to your applications." (23:00) ## The (Finite) State of Reactive Animations URL: https://davidk.dev/talks/the-finite-state-of-reactive-animations/ · Video: https://www.youtube.com/watch?v=wOsqWoszMDI Conference talk · RxJS Live (2019) · 2019 · 30:30 · 3,013 views (as of 2026-10-19) Description: Reactive animations are more than just timelines. They adapt and respond to user input, creating a lively, exciting, and meaningful user experience. However, these dynamic user interfaces can quickly become complex, especially as features are added. So how can we build them in a manageable, scale-able, flexible, and declarative way? Enter finite state machines (FSMs). Key quotes from the transcript: - "Over time, I got more interested in reactive animations, get over time, so I wanted to, like, play around with different streams of events and how those interacted with animations." (3:00) - "Using these animation frames, I decide to make some more experiments with of reactive animations, and this animation frame scheduler allowed us to have a steady tick up." (6:00) - "Put the values of the mouse and you would animate those smoothly instead of just having it be the exact position of the mouse." (9:00) - "RxJS is a finite state machine, has five parts. First, finite state machines have one initial states." (14:00) - "The idea is that you would star in the state, such as searching, and then, based on what events you had, it would tell you what the next state is." (16:00) ## Mind-Reading with Adaptive and Intelligent User Interfaces URL: https://davidk.dev/talks/mind-reading-with-adaptive-and-intelligent-user-interfaces-react-alicante-2019/ · Video: https://www.youtube.com/watch?v=F2m7QrIh3k8 Conference talk · React Alicante 2019 · 2019 · 39:01 · 536 views (as of 2026-10-19) Key quotes from the transcript: - "Let's say that you have a button on your user interface such as fetch user data and let's say that my computer doesn't behave exactly the way I want it to." (0:00) - "Developing adaptive user interfaces is very challenging though because this is even though this has been researched for years, it's still very much cutting edge way of developing user interfaces and applications because there are so many things to consider." (7:00) - "I used state machines and statecharts in order to model it and I use those statecharts in order to actually run this application." (23:00) - "Based on what the user behavior is, we want to optimize for which type of behavior is going to allow the user to click ads the most." (27:00) - "Whether you should do it based on prediction or feedback in which feedback is directly asking the user how do you want this application to adapt based on based on you." (32:00) ## RRU 069: The State Machines in React URL: https://davidk.dev/talks/rru-069-the-state-machines-in-react/ · Video: https://www.youtube.com/watch?v=8n_Z23qbAHU Podcast · React Round Up 069 (Top End Devs) · 2019 · 54:55 · 1,162 views (as of 2026-10-19) Key quotes from the transcript: - "Whether you know it or not, you're using state machines every day in your programming." (12:00) - "One of the most interesting effects of thinking about your application as state machines, or at least a part of your application of the state machine, is that." (16:00) - "Jakob Beard is a developer who has created Sion as a project which interprets what's called SC XML, and so XML format for describing steam machines." (33:00) - "I think my first exposure to state machines was in college, and I never really touched him after that." (41:00) - "Either writing new features, which even if a feature seems simple, like add a button there, you're like, Oh well, I have to so many things in so many different screens or fixing bugs." (46:00) ## Write Fewer Tests! From Automation to Autogeneration URL: https://davidk.dev/talks/write-fewer-tests-from-automation-to-autogeneration/ · Video: https://www.youtube.com/watch?v=tpNmPKjPSFQ Conference talk · React Rally 2019 · 2019 · 26:44 · 16,199 views (as of 2026-10-19) Key quotes from the transcript: - "Not by making testing more enjoyable to write, but just eliminating it altogether and at the same time we're going to be covering updating, determining why tests fail, and discovering edge cases, as well." (1:00) - "Thankfully, this got a bit easier when we started automating our tests, because instead, we could write these unit and integration tests for our code and hopefully have them write." (3:00) - "When that happens you don't need to rewrite any of the tests, the model will regenerate the tests for you, because again it's just an algorithm that traces each state in each transition and tries to go to every other state." (11:00) - "Using this testing library, what we could do is generate test plans that give us all of the paths for each one of the states that we're trying to go to." (15:00) ## The Visual Future of Reactive Applications with Statecharts URL: https://davidk.dev/talks/the-visual-future-of-reactive-applications-with-statecharts/ · Video: https://www.youtube.com/watch?v=o84Xw8qiTCw Conference talk · HolyJS · 2019 · 1:01:09 · 5,752 views (as of 2026-10-19) Description: David покажет нам, как можно делать удивительные вещи с использованием state machines, делая логику работы вашего приложения более прозрачной и предсказуемой. Key quotes from the transcript: - "We could just look up in states, the searching state, which is our current state, and then this on object contains a mapping of events to states." (10:00) - "We should model this as a state machine, where each of the different states over here models what phase were in." (15:00) - "The problem is that when you have many states and your app has more complexity and you need to add more states, the number of transitions increases." (19:00) - "Instead of that, we could use orthogonal states, and this is just a visual representation of being in all of these states at the same time." (27:00) - "You would take your application, you would model your application as a state machine on the side, like, don't put that state machine in your application just yet." (55:00) - "Finite state machines and statecharts, which are finite state machines, are less powerful than Turing machines on purpose, and it is important for them to be less powerful." (58:00) ## Formal Forms with State Machines URL: https://davidk.dev/talks/formal-forms-with-state-machines/ · Video: https://www.youtube.com/watch?v=hiT4Q1ntvzg Conference talk · ReactNext 2019 (Tel Aviv) · 2019 · 31:47 · 17,593 views (as of 2026-10-19) Key quotes from the transcript: - "Such as this control, which already has its own local states, so you still have state spread out through your app, it's just a little less organized and less predictable than just having everything be local." (3:00) - "One way that we could tackle this complexity is with a mathematical model called finite state machines and statecharts, which is an extended version of finite state machines." (11:00) - "I just want you to have the idea that instead of just returning the next state, we return a combination of the next state and the next effect." (16:00) - "You could model finite state machines with switch case, where you consider the current state, such as searching the event that happens, such as resolved and the next state that's going to occur." (20:00) - "Instead of having one global state, you have many local states which communicate with each other in an hierarchical way." (30:00) ## Reactive State Machines and Statecharts URL: https://davidk.dev/talks/reactive-state-machines-and-statecharts/ · Video: https://www.youtube.com/watch?v=GSHQFx7PG20 Conference talk · Uphill Conf 2019 · 2019 · 21:25 · 2,929 views (as of 2026-10-19) Description: What if you could automatically visualize your application logic? Discover how state machines and statecharts can help increase the speed of development, eliminate entire classes of bugs, identify all possible edge cases, generate integration tests, provide comprehensive analytics, and more. These decades-old software modeling techniques have been proven in other industries and mission-critical so Key quotes from the transcript: - "I also work in Microsoft and I'm really excited to be here at Apple Comm talking about reactive state machines and statecharts." (0:00) - "A mapping of state transitions which are triggered by these events, which transition from one state to the next state, and then final states." (7:00) - "I think the visualization part is probably one of the best parts of having finite state machines and statecharts in your application." (14:00) - "Where you could take these state machines to generate tests, that's right, you don't have to write the tests, you take that state machine and statechart, and you generate tests based on that." (18:00) ## State of the Art User Interfaces with State Machines URL: https://davidk.dev/talks/state-of-the-art-user-interfaces-with-state-machines/ · Video: https://www.youtube.com/watch?v=Ras7QG9kxUk Conference talk · Craft Conference 2019 · 2019 · 45:05 · 2,488 views (as of 2026-10-19) Description: As the number of possible states in your app grows, developing UIs can become exponentially more complex. With the help of finite automata, or finite state machines (FSMs), you will be able to manage your app's states in a simple, robust way, and even visualize them! In this session, we will discover how FSMs and statecharts can take your UIs to the next level, with innovative techniques for imple Key quotes from the transcript: - "We need to model the fact that this pairing gives us a pairing of a next state and a declarative set of effects that happen whenever you transition from one state to the next." (5:00) - "The answer, at least to me, is using finite state machines and statecharts." (11:00) - "One of the things I love about state machines is that software bugs are made visually clear with them." (17:00) - "The technique that we would use for this is you would first create an abstract model of your application using these state machines and statecharts." (28:00) - "With regard to the actor model, so state machines and actor model go very well together." (35:00) ## Mind Reading with Adaptive and Intelligent UIs in React URL: https://davidk.dev/talks/mind-reading-with-adaptive-and-intelligent-uis-in-react/ · Video: https://www.youtube.com/watch?v=ppvi09LIUnU Conference talk · React Finland 2019 · 2019 · 25:02 · 1,231 views (as of 2026-10-19) Description: What if you could predict user behavior with smart UIs? In this talk, we will explore how we can make adaptive and intelligent UIs in React that learn from how individual users use your apps, and personalize the interface and features just for them, in real-time. With probability-driven statecharts, decision trees, reinforcement learning and more, UIs can be developed in such a way that it automat Key quotes from the transcript: - "Use interfaces in reading the mind of the user in a way, and so this idea is called adaptive user interfaces." (4:00) - "If we think about our goals here, our goal is to collect information from the user to better provide a user experience." (11:00) - "I used a state machine to both model the user interface of how users logged in and out, and also collect analytics." (15:00) - "Our overall goal is to make applications that have this adaptive user interface have an executable abstract model of that system." (23:00) ## Let’s Learn State Machines URL: https://davidk.dev/talks/lets-learn-state-machines/ · Video: https://www.youtube.com/watch?v=czi24DqUfSA Livestream · Learn With Jason (CodeTV) · 2019 · 1:05:29 · 19,712 views (as of 2026-10-19) Description: What are state machines? How are they helpful? In this episode, David Khourshid ( walks us through refactoring a React component to use xstate, which helps us clear up some bugs and add more predictability. Key quotes from the transcript: - "We did use state machines within the live share the live share extension." (4:00) - "When we're in the closed state when we have an open event and that could you know, come from anywhere, we go to the open state." (19:00) - "Number one with state machines and SCXML, which is the standard that XState is based on, it's send plus send is a lot easier to type." (23:00) - "If the hide widget value is false, then we want to focus on the widget title." (30:00) - "You know, you'll see that if you click on states the state tab at the right you'll see that now we're in the open state and we have the focus title action." (35:00) - "What's good about this is instead of having like just a separate state for set rating, now you could use the state machine to apply just logic to you know, to this." (46:00) ## Why You Should Know State Machines URL: https://davidk.dev/talks/why-you-should-know-state-machines/ · Video: https://www.youtube.com/watch?v=UAtaoVMFt7Y Conference talk · Project Codex · 2019 · 49:35 · 2,126 views (as of 2026-10-19) Description: This is a talk from David Khourshid on Finite State Machines! David is a Software Engineer for Microsoft and has given talks across the globe. Key quotes from the transcript: - "On finite state machines have one initial state, for example, idle, they have a finite number of states, that's where finite comes in." (8:00) - "Visualize your state machine, and so this is one of my favorite parts about using a state machine is that." (17:00) - "Nested states could also make your make your state machine diagrams a lot simpler, for instance, over here." (22:00) - "You don't have that declarative notion of when an event happens in this state, here's to the next state, and here's the actions that you should do, or the side-effects." (41:00) - "Even if you're using Redux or NCR X or any other state management library, these are things that you should think about." (44:00) ## Reactive State Machines and Statecharts URL: https://davidk.dev/talks/reactive-state-machines-and-statecharts-reactiveconf-2018/ · Video: https://www.youtube.com/watch?v=DrHccvns-L0 Conference talk · ReactiveConf 2018 (Prague) · 2018 · 28:50 · 2,688 views (as of 2026-10-19) Description: 29th - 31st October 2018, Prague, Czech Republic ------------------------------------------------------------------- Reactive State Machines and Statecharts Key quotes from the transcript: - "My application is a huge state machine, you shouldn't, you should be using multiple state machines that all communicate with each other." (19:00) - "The more lines of code we write with finite state machines, we see an initial decrease in complexity." (22:00) - "The way that hierarchical state machines work is if the transition is invalid here, it checks the parents, and if it's invalid in the parents, it goes to the parent and so on." (25:00) - "What you really want is in enumeration, you want your state to either be loading or error or success, and never all three at the same time." (28:00) ## State of the Art Web User Interfaces with State Machines URL: https://davidk.dev/talks/state-of-the-art-web-user-interfaces-with-state-machines/ · Video: https://www.youtube.com/watch?v=OVS9cKNK00U Conference talk · Codegram channel · 2018 · 37:35 · 869 views (as of 2026-10-19) Description: This talk is intended for all developers, beginner to advanced, and provides gentle explanations to two otherwise confusing (but essential) computer science topics: finite state machines and statecharts. It will focus on using FSMs within any framework (or no framework at all), with an emphasis on statecharts - an extension of FSMs that simplifies even the most complex user interfaces, and is used Key quotes from the transcript: - "I want to tackle the biggest problem we're dealing with user interfaces, which is dealing with how state changes over time." (2:00) - "Finite state machines are comprised of five parts first, you have an initial state, then you have a finite number of states that follow from that initial state." (7:00) - "We could just have a shared state called searched, and then from this search state, we could have a search action that lets the user." (19:00) - "With XState, you could model your state machines in, say, charts, any way you want." (27:00) - "Your code can generate tests, it can improve your user interfaces and make them more robust in state of the art." (34:00) ## Ahead of the Bezier Curve URL: https://davidk.dev/talks/ahead-of-the-bezier-curve/ · Video: https://www.youtube.com/watch?v=S8QqDnMUM_0 Podcast · Thunder Nerds podcast · 2018 · 35:05 · 136 views (as of 2026-10-19) Description: In this episode we get to talk with David Khourshid: front-end developer, tech author, international speaker, open-source contributor, co-host of the @keyframers, and pianist. We speak with David about how he got his start in the industry as a musician that fell in love with web development. We discuss his pens, and how he has been making some of the most notable animations on Codepen. Then we cha Key quotes from the transcript: - "If you want us to read your review live on the show, please go ahead and go to Thunder Nerds." (2:00) - "I decided to just push the idea further and for until one day one, my coworker said one of my previous jobs challenged me to make this animated dog that someone made, she said, do this in CSS." (10:00) - "When I make my animations, I just love the fact that I could do them in CSS and then inspect them in the animation inspector." (15:00) - "Using HTML, CSS in JavaScript, there's a lot you could accomplish, and a lot that you could show off or experiments with in code, pen." (17:00) - "The reason why is because I had some unexpected travel where I landed in Seattle and I wasn't even planning on being in Seattle." (25:00) ## The (Finite) State of Reactive Animations URL: https://davidk.dev/talks/the-finite-state-of-reactive-animations-fedc-taiwan-2018/ · Video: https://www.youtube.com/watch?v=ZENUkQUl1_w Conference talk · FEDC Taiwan 2018 · 2018 · 39:41 · 874 views (as of 2026-10-19) Key quotes from the transcript: - "Let's say we're doing a sample search app, right where we have an initial state of idle, we're trying to search for something so then we could model that." (17:00) - "The reason nothing is happening is because our state machine tells us that when we're in that state and we get a submit event, nothing happens." (20:00) - "We needed to model this, and so that's why I used a state machine that looks just like this now." (23:00) - "The way you would use this is you would create a state machine, which is just these pairing of states and actions and events." (31:00) - "If you're using finite state machines, then you reduce the complexity at first." (35:00) ## Reactive State Machines and Statecharts (React Finland 2018) URL: https://davidk.dev/talks/reactive-state-machines-and-statecharts-react-finland-2018/ · Video: https://www.youtube.com/watch?v=frB07tHgPH4 Conference talk · React Finland 2018 · 2018 · 37:18 · 1,770 views (as of 2026-10-19) Description: Managing the many user interface states of an application easily becomes complicated. We'll discover how some historical and important computer science concepts – state machines and statecharts – and a functional + reactive approach can make it much easier to understand, visualize, implement, and automatically create tests for complex user interfaces and flows. Key quotes from the transcript: - "When we want to retry and search again, then the error state is still showing, so we have to set that to false." (6:00) - "With libraries like Redux and Mob X and RxJS, and things like React context and things like set state and whatever, we know that this is not true." (9:00) - "If I search for a Finland, you can see that currently we're on the start state." (14:00) - "We could also model the code and automatically generate all of the possible tests that could happen based on that model of the code." (21:00) - "We were able to make applications using this and use that statecharts to not only model our state management, but also visualize and test our application as well." (27:00) ## Reactive Animations with RxJS (@keyframers 1.2.0) URL: https://davidk.dev/talks/reactive-animations-with-rxjs-keyframers-1-2-0/ · Video: https://www.youtube.com/watch?v=H7FEK6geguM Conference talk · CodePen Houston meetup (@keyframers 1.2.0) · 2018 · 36:34 · 1,186 views (as of 2026-10-19) Description: This week's @keyframers episode featured David Khourshid giving a short talk and live coding demonstration at CodePen Houston on Reactive Animations with RxJS followed by a Q&A. Key quotes from the transcript: - "Wherever our mouse is on there it, we're translating that from a value between negative 25 and 25." (10:00) - "What we could do is we could combine this animation frame observable with this mask move observable and sort of, you know, pair them together." (15:00) - "Instead of just changing the value, it's accumulating all of the values and putting them together, and so it's just getting bigger and bigger and bigger." (20:00) - "If you move your mouse around, you could see that sort of, eventually goes to that value and that's what we want." (23:00) - "If I wanted to combine mouse moves and touch moves, so no matter what I'm using." (33:00) ## Behind the Illusions: Impossibly High-Performance Layout Animations URL: https://davidk.dev/talks/behind-the-illusions-impossibly-high-performance-layout-animations/ · Video: https://www.youtube.com/watch?v=zVbLR7rI8ZU Conference talk · CSSConf Australia · 2018 · 23:51 · 3,811 views (as of 2026-10-19) Description: Have you ever wanted to dynamically animate layouts without sacrificing performance? In this talk, innovative illusions will be revealed that will transform your static user interfaces into lively, intuitive experiences for your users at 60 frames per second. We'll investigate even the most complex animated layouts and discover how certain techniques, such as FLIP, containment, clever transforms, Key quotes from the transcript: - "You sort of have to, you know, find a way to animate it smoothly, without touching height or width or position." (6:00) - "Instead of animating width and height, I'm actually animating, transform and adjusting the elements based on that." (9:00) - "Flipping is meant to bring flip animations and the technique to the wider community, and to make it a lot easier to make these animations." (18:00) - "We have the background element that's stretching, and we have this text element that also has a data flip key on it." (21:00) ## Simplifying Complex UIs with Finite Automata & Statecharts URL: https://davidk.dev/talks/simplifying-complex-uis-with-finite-automata-statecharts/ · Video: https://www.youtube.com/watch?v=RqTxtOXcv8Y Conference talk · JSConf Iceland 2018 · 2018 · 34:28 · 20,042 views (as of 2026-10-19) Key quotes from the transcript: - "I like JSON better than blackbox functions because you can enumerate all the possible states and actions and be able to transition from one to the other with nice, simple function right here." (12:00) - "What I did was a couple months back, I refactored this part of the app so that it uses an explicit state machine just like this." (15:00) - "If I'm trying to search for something, and the user didn't give me a search query, then I'm not going to transition to the next state." (21:00) - "You could imagine how this would simplify just really complex state machines." (25:00) - "By using statecharts, they were able to generate just all of these integration tests where they could test each and every one, and ensure that every single state was being hit, and every single possible action or event was being handled." (29:00) ## Fixate on Code #19 URL: https://davidk.dev/talks/fixate-on-code-19/ · Video: https://www.youtube.com/watch?v=UaHlAGFd_zw Podcast · Fixate on Code podcast #19 · 2018 · 22:47 · 38 views (as of 2026-10-19) Description: David works on Microsoft's Visual Studio Live Share, a service that enables developers from anywhere in the world to collaboratively code, debug, and more from the comfort of their own Visual Studio or Visual Studio Code editors. Key quotes from the transcript: - "With his awesome work on CSS animations, and, more recently, his work on XState, a library that makes managing states and user interfaces easier." (0:00) - "I use VS code all the time in, you know, since I'm working on VS code extensions for visual studio." (6:00) - "I suppose a lot of this comes from the move away from imperative code and towards declarative code." (10:00) - "I remember about, I think it was about a year ago that there was just this whole big debate on CSS and J/S, whether you should be using JavaScript for styling, your CSS for styling." (12:00) ## The Observable Future of Animations URL: https://davidk.dev/talks/the-observable-future-of-animations/ · Video: https://www.youtube.com/watch?v=jW4nzdVU6hk Conference talk · DevFest Florida 2017 · 2017 · 30:47 · 104 views (as of 2026-10-19) Description: UI animations can be an incredible asset to the user experience, but the handoff between prototyping complex motion interactions to implementing them in code is not always the smoothest transition. That's what Google's new Material Motion library aims to solve. In this talk, we'll discuss how thinking about animations as reactive streams of data can make even the most complex animations easy to de Key quotes from the transcript: - "About the observable future of animations, this is sort of a play on words." (0:00) - "We realized that animations are just a function of state and time, and this states could include what happens, you know, when new actions come in, so actions change states and do the time action animations move over time." (16:00) - "I guess you could just copy the code from the mouse move and put in the touch move." (18:00) - "RX CSS give it that mouse observable, which emits X and Y values, and then I could just move things using those values." (25:00) - "My goal is to create a visual interface for editing reactive animations, not just static animations, but animations that depend on, you know, just a number of other values." (30:00) ## DevFest Florida 2017 Interview URL: https://davidk.dev/talks/devfest-florida-2017-interview/ · Video: https://www.youtube.com/watch?v=ulxg0bS5Nn4 Interview · Thunder Nerds (DevFest Florida 2017) · 2017 · 7:16 · 91 views (as of 2026-10-19) Key quotes from the transcript: - "Today we have a special guest speaking at the Deaf Fest, Florida around 11:30." (0:00) - "I was always interested in both music and technology, but the recent accounts of web development as a career specifically, was it was an intro to music technology." (2:00) - "At Microsoft, I have to work on C-sharp, where if you use TypeScript with JavaScript, then it makes it a lot easier to understand C-sharp." (4:00) ## Reactive Web Animations with RxJS URL: https://davidk.dev/talks/reactive-web-animations-with-rxjs/ · Video: https://www.youtube.com/watch?v=lqzFSAY6Wog Conference talk · Nordic.js 2017 · 2017 · 29:15 · 2,575 views (as of 2026-10-19) Description: David Khourshid gave this talk at Nordic.js 2017. Read more at Key quotes from the transcript: - "You might be thinking, this is declarative, and that's true, so this original paper discussed ideas of creating declarative, reactive and functional animations." (4:00) - "As you know, the combined observable, then the top one is going to be caring the latest observable values from the second observable." (18:00) - "Actually, you could test the animations because you're you're just testing observables, and there's a ton of good resources on testing observables, especially in RxJS." (26:00) - "If you take one of two things from this talk, it's either do reactive animations in your app or just learn RxJS." (28:00) ## Infinitely Better UIs with Finite Automata URL: https://davidk.dev/talks/infinitely-better-uis-with-finite-automata/ · Video: https://www.youtube.com/watch?v=VU1NKX6Qkxc Conference talk · React Rally 2017 · 2017 · 25:33 · 56,825 views (as of 2026-10-19) Key quotes from the transcript: - "Keep that in mind as we go through what deterministic finite automata really is." (8:00) - "We always have an initial state, which in this case is just a normal ghost." (11:00) - "The idea is that by having a declarative representation of your finite state machine." (18:00) - "The first one is that you could represent your finite state machines as hierarchical states." (20:00) ## Getting Reactive with CSS URL: https://davidk.dev/talks/getting-reactive-with-css/ · Video: https://www.youtube.com/watch?v=4IRPxCMAIfA Conference talk · CSSconf EU 2017 · 2017 · 28:23 · 6,507 views (as of 2026-10-19) Key quotes from the transcript: - "For years, I challenged myself to create these complex interfaces and even animations like this box, using only CSS." (2:00) - "In Internet Explorer 7, we had something called CSS expressions, and this is where we put JavaScript inside of CSS, so it's actually sort of the complete opposite of doing CSS." (7:00) - "When you're using CSS variables, the more you use it, you're going to discover that Cal is going to be your best friend with CSS variables." (9:00) - "If we move styling over to CSS and use JavaScript only for sending over values, then we could potentially replace JavaScript and CSS with any source in any medium." (25:00) ## Talking About Frameworks (JSDayES 2017) URL: https://davidk.dev/talks/talking-about-frameworks-jsdayes-2017/ · Video: https://www.youtube.com/watch?v=lCFYYi68x9A Interview · JSDayES 2017 · 2017 · 1:51 · 121 views (as of 2026-10-19) Key quotes from the transcript: - "Where, instead of designers making prototypes, designers can actually participate in the development process instead of a." (0:00) - "The quicker you could chip and the quicker you could put things on the app store or wherever." (0:00) - "You can package it up using Cordova IOS to make a native app that goes into the iOS app store as well." (1:00) ## Animate React Components Using RxJS URL: https://davidk.dev/talks/animate-react-components-using-rxjs/ · Video: https://www.youtube.com/watch?v=vMDQ4lFdbfU Conference talk · React Orlando meetup (Jan 2017) · 2017 · 8:51 · 27 views (as of 2026-10-19) ## Reactive Animations with CSS Variables URL: https://davidk.dev/talks/reactive-animations-with-css-variables/ · Video: https://www.youtube.com/watch?v=lTCukb6Zn3g Conference talk · JSConf Iceland 2016 · 2016 · 31:03 · 18,235 views (as of 2026-10-19) Description: CSS variables are here, and they're much more powerful than you think. In this presentation, we will explore the many possibilities with mixing RxJS with CSS variables, including how they can be used to bring your web projects to life with dynamic animations that react to user input. And yes, there will be plenty of demos. Key quotes from the transcript: - "I would look at examples on dribble, some cool animations, and then I would try to recreate it as best as I could, using only CSS." (2:00) - "Title of my talk is called reactive animations with CSS variables, but I'm not going to be talking about React in this talk." (5:00) - "To apply your CSS, whether it's SAS, L Stylus, PostCSS, or inline Styles does not matter, you could use CSS variables in any of those." (17:00) - "We talked about RxJS, we talked about CSS variables, and we sort of had a hint of how we could mix the two." (23:00) - "What this means is that when you do animations in CSS, you could have those same values dispatched to both canvas." (30:00) ## What the Elm, Mate? URL: https://davidk.dev/talks/what-the-elm-mate/ · Video: https://www.youtube.com/watch?v=ZsvWrTInYk0 Lightning talk · Orlando Devs · 2016 · 7:48 · 124 views (as of 2026-10-19) Description: In this lightning talk, David describes what the Elm language is, what it is good for and some of the development patterns it uses. Key quotes from the transcript: - "L is a functional programming language with static type checking, so that means that, with JavaScript." (1:00) - "Over here, if you go on the Ellen website elm dashlane..org, you're going to see a whole bunch of really cool examples." (4:00) - "Elm, since it compiles to JavaScript, you could just tell Elm to, like, stick itself on this Div." (6:00) ## Getting Sassy with Node.js URL: https://davidk.dev/talks/getting-sassy-with-node-js/ · Video: https://www.youtube.com/watch?v=oVmdBsbZKAs Conference talk · Node.js official channel · 2015 · 22:29 · 368 views (as of 2026-10-19) Key quotes from the transcript: - "In case you didn't think you had enough SAS, you have to pass SAS back inside eyeglass." (11:00) - "Creating a SAS port module is also easy you install the same SAS port, you define your module name, which over here it's just greetings, and you add optional functions variables, exports and loaders." (13:00) - "What I did over here was, I got the logo and I used that size of function, which again, this is node, not SAS." (18:00) - "You to specify custom importers so you could say I want to use the eyeglass importer instead of the SAS Port importer." (22:00)