Transform your codebase without breaking a sweat
summary
Etsy converts CSS to SCSS and migrates inline JS toward AMD by writing automated AST transforms that find and replace calls like underscore.bind and jQuery.proxy with function.prototype.bind after dropping an MDN polyfill. The pipeline uses esprima plus traversal and codegen, adds beaconing instrumentation in production, performs a soft rollout, watches metrics and error logs, and then removes shims and experiment flags — the automated refactor and rollout report low breakage and successful cleanup.
AI-written summary · about
chapters (10)
- 0:00Managing codebase growth
- 2:25The role of infrastructure
- 3:49A framework for transformation
- 5:57Identifying code friction
- 8:40Automating via ASTs
- 10:46Implementing the transformation
- 13:52Verification and monitoring
- 17:05Cleanup and finalization
- 19:42Lessons and best practices
- 22:53Q&A session
related talks
20mThey see me refactorin'. They hatin'
47mComputer, refactor my code!
34mMass Frontend Refactors: Less Stress; More Success
26mMoving on from runtime CSS-in-JS at scale
40mRefactoring large JavaScript codebases
13mSpeed at Scale: Optimizing The Largest CX Platform Out There
25mWriting Code to Update our Code
25mManage large refactors with JSCodeShift
