~/talk

Manage large refactors with JSCodeShift

links:none on file
slides:none on file

Shows how to automate a large refactor from an in-house Phoenix component library to Adobe Spectrum across hundreds of repositories and thousands of files using JSCodeShift with a TypeScript parser. Demonstrates codemods that rewrite JSX, remap props, and update imports, with unit tests validating before/after pairs. AI accelerates authoring: ChatGPT 3.5 generates working transforms that handle most cases but mis-merges imports and needs small manual fixes; GPT-4 reduces errors. The workflow runs transforms at scale and iterates quickly by prompting the model.

AI-written summary · about

  1. 0:00The need for code mods
  2. 2:23Understanding ASTs
  3. 6:51JS Codemod tools
  4. 10:41Automating with AI
  5. 22:45The future of refactoring
~/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.