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

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
TypeScript Generics: Write Functions That Work on Any Type
Generics let you write functions and types that stay fully typed without locking down a single concrete type — the practical alternative to any.
Green belt
Drizzle ORM: SQL-First Type Safety for TypeScript
Drizzle brings full TypeScript inference to your Postgres queries by writing the schema in TypeScript — no separate DSL, no code generator, just typed SQL that never drifts from your types.
Green belt
tRPC: End-to-End Type Safety Without a Schema
Share TypeScript types between your Next.js server and client without code generation, OpenAPI, or a separate schema file.
Green belt
TIL: `using` — TypeScript Built-in Resource Cleanup
TypeScript 5.2 added the `using` declaration — a finally block that writes itself.
Green belt