~/talk

Machine Powered Refactoring: Leverage AST's to Push Your Legacy Code (& the Web) Forward

Talkat Node+JS Interactive 2018 · on Thursday, 2018-10-11· at 15:20· West Ballroom A· [javascript, developer-experience]
slides:none on file

Argues that regex-based refactors fail on dynamic JavaScript and that parsing code into an AST gives a predictable, queryable structure for safe, large-scale changes. Demonstrates AST Explorer and using parsers plus jscodeshift / Recast to find nodes, rewrite identifiers into function declarations, and regenerate code; mentions Babel plugins like preval to pre-evaluate at build time. Cites HTTP Archive numbers: average site ~400 KB and ~15s mobile load, and notes only ~25% of teams feel their codebase is healthy.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 7:15State of JavaScript and tech debt
  3. 15:33Introducing Abstract Syntax Trees
  4. 24:03ASTs in tools like Babel
  5. 33:10Code modifications with ASTs
  6. 42:16Conclusion and resources
~/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.