~/talk

Automating Front-End Refactoring

slides:none on file

Claim: using ASTs & codemods actually automates large front‑end API migrations with confidence. The team writes transformations with jscodeshift, builds and inspects trees in AST Explorer, and converts patterns (example: replacing many new Foo(arg1,arg2) constructors with Foo.build({a:arg1,b:arg2})). A single codemod runs across the repo, produces a big PR, and the migration applies reliably so manual edits drop from hundreds to a handful of review fixes.

AI-written summary · about

  1. 0:00Introduction
  2. 0:30refactoring and migrations
  3. 0:51maintaining code
  4. 2:29the frontend nightmare
  5. 3:22current stack
  6. 4:51how we got there
  7. 5:18what is codemode
  8. 5:41how does codemode work
  9. 6:05syntax tree definition
  10. 6:36simple function
  11. 7:08ASP Explorer
  12. 7:25Function Declaration
  13. 7:53GS Coaches
  14. 9:07Object
  15. 9:50Regex
  16. 10:52AST Explorer
  17. 11:34New Expression
  18. 12:41Exporting a Function
  19. 13:54Transforming an Import
  20. 14:42Transforming Special New Expressions
  21. 14:57Importing New Expressions
  22. 15:33Object Expression
  23. 15:45Node Arguments
  24. 16:11Argument Object
  25. 16:58Result
  26. 17:09Transformation
  27. 17:27ASDs
  28. 18:25CSS
  29. 20:33Summary
~/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.