DavidKPiano Profile Banner
David K 🎹 Profile
David K 🎹

@DavidKPiano

Followers
77K
Following
105K
Media
1K
Statuses
26K

Making state machines at @statelyai · prev. @Microsoft · I play piano

Orlando, FL
Joined December 2012
Don't wanna be here? Send us removal request.
@DavidKPiano
David K 🎹
3 years
We're making it even easier to create state diagrams. ➡️ state . new
42
184
2K
@DavidKPiano
David K 🎹
2 days
I don't mean to brag
6
0
29
@DavidKPiano
David K 🎹
3 days
All I want for Christmas is a good local open-source tab autocomplete model
4
2
44
@DavidKPiano
David K 🎹
3 days
Some @xstate/store updates: New `store.with(…)` API for adding store extensions (undoRedo, etc.) Undo/redo now has `strategy: 'snapshot'` for traditional snapshot-based history Go-to-definition now "just works" for triggers!
5
4
121
@DavidKPiano
David K 🎹
8 days
Do I really have to explain why this is bad code? There's no race condition prevention nor error handling Please don't say "this code is fine" - read up:
maxrozen.com
If you're using useEffect to fetch data, chances are you've either run into a race condition, or have one without realising it. Let's learn how to fix them in this article.
10
9
161
@DavidKPiano
David K 🎹
8 days
Imagine the code smell
148
32
1K
@DavidKPiano
David K 🎹
9 days
It's time to stop using RSCs and put your fetch calls back in useEffect() where you can DDOS your servers because of a missing dependency/faulty logic instead of worrying about RCE exploits
28
28
473
@DavidKPiano
David K 🎹
9 days
Tell me I'm wrong
1
0
5
@DavidKPiano
David K 🎹
9 days
If you're reading, reviewing, iterating on, or editing AI-generated code, you're not really vibe-coding anymore (and that's a good thing)
6
3
42
@DavidKPiano
David K 🎹
11 days
I love it when web apps gift-wrap themselves in modals during the holiday season 🎁
1
1
26
@DavidKPiano
David K 🎹
11 days
I used to think that XState was only used for very specific, niche complex logic use-cases Seeing this never fails to blow my mind 🤯 Working every day to make it even simpler and better
9
0
123
@DavidKPiano
David K 🎹
12 days
Arrows look nice at least
5
0
167
@DavidKPiano
David K 🎹
12 days
Oh no, I've reached the point of UI engineering where I have to use Math.atan2()
20
5
475
@DavidKPiano
David K 🎹
17 days
I still call it "Twitter" Not out of principle or anything, but because "X" is a pretty dumb name for an app
39
16
546
@DavidKPiano
David K 🎹
17 days
Working on the upcoming XState v6... Any wishlist items?
34
1
56
@DanielW_Kiwi
Daniel 🦔
20 days
The finite state machine is one of the easiest patterns for managing complexity. Yet I hardly see it used.
61
12
692
@DavidKPiano
David K 🎹
20 days
Screenshots of code in marketing materials always look nice until you zoom in and actually read the code
2
1
13
@algolia
Algolia
20 days
What if the future of UX isn’t just faster… but multidimensional? In the upcoming #AlgoliaDevBit, @keyframers@davidkpiano & @shshaw dive into a speculative 4D interface that blends creative animation with the power of LLMs integrated into Algolia Search. 🎟️ Don’t miss it →
1
4
8
@akuya_ekorot
Akuya Ekorot
23 days
Just paused the state management at scale course from @FrontendMasters and the amazing @DavidKPiano to say holy shit!! Didn't expect to be getting some really interesting insights but I'm pleasantly surprised.
1
2
14
@DavidKPiano
David K 🎹
22 days
If you disagree, just read the docs: https://t.co/1DoffOHGAp https://t.co/HQmE2rfOEA I'm just trying to push devs towards better practices
Tweet card summary image
react.dev
The library for web and native user interfaces
1
0
28
@DavidKPiano
David K 🎹
22 days
Fetching in useEffect()
@ick_real
`
23 days
What is extremely unhygienic but everyone seems to do it anyway???
26
29
760