~/talk

Not Your Uncle’s Clean Code (TypeScript Edition)

links:none on file
slides:none on file

Shows concrete patterns from real production work: a media Optimizer and a transformation Builder shipped in the last 18 months. Demonstrates using TypeScript discriminated unions to make impossible states impossible, replacing Joi-style runtime validation with Zod parsers so types are inferred at compile time — parse don’t validate — and preferring composition and slot-style children over boolean prop configuration — favor composition over configuration. Replaces class-based repositories with closures to avoid action-at-a-distance, adopts dependency injection (stable params first) to cut tests and speed runs (Mocha timed ~8s faster in one experiment).

AI-written summary · about

  1. 0:00Beyond clean code metaphors
  2. 2:17Type-driven development
  3. 8:00Parsing over validation
  4. 12:14Composition over configuration
  5. 15:25Local reasoning vs classes
  6. 22:12Dependency injection patterns
  7. 27:57Adopting a scientist mindset
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.