Claude the frontend dev

Working on Holt Kit, I need to write a lot of Leptos components. A lot. Holt Kit is intended to be an overly complete collection of elements, which need to

Typescript lets you spread an array into an object

I ran into an instance of this Typescript bug recently. Basically, Typescript lets you do this without compiler errors: const arr = [1, 2, 3]; const x: { a: number[] } = { a: { ...arr

Hosting quickly 3 - A Neon database

This is the third (or third-and-a-halfth) article in a series called "Hosting quickly". I want to launch Rust apps quickly and often, and I want to have stable,

Testing complex XState machines

I love using state machines in my frontends, and the current winner library to do it is XState. State machines (or actually state charts) can get quite complex, and like

Predictable programming 3 - using XState

In the last two posts (1, 2) in this series, I explained why I want Typescript to be more predictable, and some of the most important guidelines I follow to