~/talk

Computer, refactor my code!

slides:none on file

Demonstrates writing codemods that parse JavaScript into an AST, traverse and transform nodes, then regenerate code; one example runs over 300 automated edits in a real codebase and another rewrites a chained SDK API across ~30 apps into single-object calls. Uses jscodeshift, built on recast, and debugs transforms with AST Explorer. Typical nontrivial transform takes a few hours to reach 90% correctness; replacements are deterministic and preserve nested function arguments.

AI-written summary · about

  1. 0:00Introduction to code refactoring
  2. 3:03Case study and motivation
  3. 9:59Understanding AST basics
  4. 15:24Introducing code mods
  5. 17:33Tools for AST traversal
  6. 22:57Building your first transform
  7. 24:47Demo: Simple identifier replacement
  8. 28:05Demo: Targeted node replacement
  9. 33:47Demo: Complex AST construction
  10. 39:18Summary and encouragement
  11. 40:02Q&A session
~/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.