Refactoring large JavaScript codebases
summary
Claims that codemods scale: scripts using JSCodeShift plus Babel and recast transform ASTs across hundreds of thousands of files and run multi‑threaded, so a single team can complete months of manual work in weeks. Shows concrete moves: replace lodash.get with optional chaining, add ESLint rules and eslint/git hooks to block old patterns, and large automated PRs that mostly work but break on complex control flow (uncaught promise rejections). Stresses high test coverage and QA as mandatory.
AI-written summary · about
chapters (6)
- 0:00Refactoring large JS codebases
- 2:37Why refactoring is hard
- 7:16Divide and conquer refactoring
- 16:01Automating refactors with Codemods
- 24:52JS CodeShift and ASTs
- 30:30Q&A
related talks
30mRefactoring large JavaScript codebases
29mCodemods: Refactoring JavaScript using JavaScript
47mComputer, refactor my code!
25mManage large refactors with JSCodeShift
21mAutomating Front-End Refactoring
20mThey see me refactorin'. They hatin'
34mMass Frontend Refactors: Less Stress; More Success
29mLarge Scale Migrations Using Recast and jscodeshift to Scale
