mycodedojo · est. 2020
Field notes from the code dojo.
Homelab, self-hosting, AI agents and full-stack craft. I'm Michael Cooper, a senior full-stack engineer who runs most of his stack on hardware in his own house. These are the notes I write while I train.
Featured note

React 19: The New APIs Worth Using Right Now
React 19 shipped the most significant API additions in years. Here is a practical tour of the ones that change how you write components day-to-day.
Fresh off the mat
Latest notes

TIL: crypto.randomUUID() — Generate UUIDs Without a Package
The Web Crypto API ships a native randomUUID() method in every modern browser and Node.js 14.17+, so you do not need the uuid package for most use cases.
Yellow belt
useTransition and startTransition: Keep React Responsive During Expensive Updates
React 18 lets you mark slow state updates as non-urgent so the browser stays responsive while they render.
Green belt
TIL: Promise.try() — Start Any Function in a Promise Chain
Promise.try() wraps any function — sync or async — in a Promise, so errors always flow through .catch() instead of escaping the chain.
Yellow belt
Vite: A Dev Server That Does Not Keep You Waiting
Replace CRA or a webpack-based setup with Vite for near-instant dev starts, fast HMR, and a Rollup-powered production build — no ejecting required.
Green belt
TypeScript Template Literal Types: Type-Safe String Patterns
Template literal types let you encode string structure directly in the type system — catch invalid event names, route params, and CSS properties at compile time.
Green belt
TIL: Set Now Has union(), intersection(), and difference() — No Lodash Needed
ES2024 ships seven new Set methods — union, intersection, difference, symmetricDifference, isSubsetOf, isSupersetOf, and isDisjointFrom — so you can stop converting to arrays for every set operation.
Yellow belt