~/talk

Treat type definitions with respect

links:none on file
slides:none on file

Argues that TypeScript type definitions deserve the same clean‑code rules as implementation code and gives seven concrete rules: use accurate naming, drop unused attributes, and keep interfaces close to implementation; shows React examples (hooks and components), points out an IntersectionObserver prop that should accept a simple pixel margin instead of exposing complex browser options, recommends placing types next to domain functions instead of a giant types.ts, and advises abstracting third‑party return shapes (AWS) and explicitly typing exported public APIs.

AI-written summary · about

  1. 0:00Introduction
  2. 0:46Code mess and clean practices
  3. 3:15Applying clean code to interfaces
  4. 8:58Seven tips for clean interfaces
  5. 9:19Tip 1: Use group naming
  6. 13:18Tip 2: Drop unused attributes
  7. 17:59Tip 3: Keep things simple
  8. 25:00Tip 4: Define interfaces close
  9. 33:56Tip 5: Separate layers properly
  10. 38:12Tip 6: Abstract third parties
  11. 39:37Tip 7: Define public interfaces
  12. 42:03Summary and closing
~/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.