Refactoring large JavaScript codebases
summary
Upgrading to newer Node versions and language features forces concrete fixes not vague guidance: promise rejections start terminating processes on Node 16, optional chaining breaks on Node 12, and heavy use of lodash.get inflates CPU cost in huge repos. Two practical routes appear: coordinate owners + lint rules + husky to incrementally ban patterns, or run JS code shift codemods that parse ASTs and rewrite code (author reports tackling 50 000 files quickly). Tests and QA are mandatory; some fixes need human error-handling work.
AI-written summary · about
chapters (4)
related talks
40mRefactoring large JavaScript codebases
58mImproving Quality of JavaScript Code
58mImproving the Quality of JavaScript Code
20mThey see me refactorin'. They hatin'
34mMass Frontend Refactors: Less Stress; More Success
47mComputer, refactor my code!
43mMachine Powered Refactoring: Leverage AST's to Push Your Legacy Code (& the Web) Forward
23mUntangling Your Dependencies: A Pattern for a Well-Knit JavaScript Project
