They see me refactorin'. They hatin'
summary
Claims that AST transforms replace fragile regex refactors and shows concrete tools and results: uses eslint rule to detect multi-declarators, writes a jscodeshift transform that turns one var a,b,c into three const declarations, runs it across the whole repo in seconds, and installs the lint rule to prevent regressions. Also covers Babel plugin style transforms for optional chaining, converting CommonJS to ES modules, and upgrade scripts for breaking API changes — all implemented and used successfully.
AI-written summary · about
chapters (7)
- 0:00Start
- 0:44the world has changed
- 1:03refactoring
- 1:38your project
- 2:32regular expressions
- 3:18abstract syntax tree
- 19:23summary
related talks
47mComputer, refactor my code!
40mRefactoring large JavaScript codebases
43mMachine Powered Refactoring: Leverage AST's to Push Your Legacy Code (& the Web) Forward
34mMass Frontend Refactors: Less Stress; More Success
28mMaster the art of the AST and take control of your JS
40mHow To (Semi-)Automate JavaScript Refactoring
31mAST à la Vista, Baby
43mJavaScript ❤ binary data
