~/talk

Transformers - codemods in disguise

slides:none on file

A concrete example: a codemod is written to convert badFunction → goodFunction across a large Ember codebase, handling the simple callback case and the object+string case by constructing an arrow function that calls obj.success rather than relying on fragile regex. The workflow uses jscodeshift + AST Explorer + recast (parsers: Babel/Esprima), proves regex is insufficient, and becomes runnable via npx with a shared toolchain (RWJ blue slash code Matt CLI) that auto-generates input/output docs and tests.

AI-written summary · about

  1. 0:00Introduction
  2. 2:07Story of a feature developer
  3. 8:48Excuses for not refactoring
  4. 14:58Enter JSCodeshift
  5. 21:15Live codemod demo
  6. 32:04Codemod CLI tool
  7. 34:54Conclusion and thanks
~/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.