David K. 🎹

@davidkpiano.bsky.social

State machine. Building stately.ai

The "you're falling behind on AI" crowd is weird. The whole point of this tech is that things get 10x easier, not harder. Complicated agent/prompting patterns get replaced by better models, simpler patterns, and plug-and-play tools. Catching up takes a day, not months.

A dash of modern CSS accomplishes so many things that used to require abstractions, dependencies, and tricks (wink, wink). This one from Christian Sabourin is a great example: custom properties, clamp()-ing, calc()-ing, counters, relational pseudo selectors, etc. css-tricks.com/css-elevator...

CSS Elevator: A Pure CSS State Machine With Floor Navigation | CSS-Tricks

In this article, author Chris Sabourin walk through how modern CSS features can build a fully functional, interactive elevator that knows where it is, where it’s headed, and how long it’ll take to get...

css-tricks.com

I like state machines. I still struggle a bit to get my mind bent into state machine shape, but I’m always so happy with the quality of what I build when I do

I don't like default exports. They exist in JS because they're "simpler", even though they're more verbose: export default Thing import Thing from './thing' vs. export { Thing } import { Thing } from './thing' Just use consistent naming & don't be afraid of typing curly braces.

Updated demo of Decode generating state-machines from diagrams, this time with streaming generation support Then I do the reverse, generating a diagram from an implementation. The diagram auto-layout is still rough. I'll work work on more robust auto-layout soon.

🔲 Merge Conflict: Accept All Current 🔲 Merge Conflict: Accept All Incoming ☑️ Merge Conflict: Accept the things I cannot change, the courage to change the things I can, and the wisdom to know the difference