Tell me about a time you migrated a legacy front-end codebase
Behavioral
Hard
20 min
execution
architecture
ownership
"Tell me about a large migration you led on a legacy front-end codebase. How did you plan it, how did you keep the product moving, and how did it end?"
Most senior engineers inherit legacy code. Interviewers want to know whether you can modernise it safely, in steps, while the business keeps shipping, and whether you can justify the migration in business terms.
What the interviewer is assessing
- Justification: why migrate at all, and why now, in terms of cost, risk or speed.
- Strategy: incremental approaches (strangler fig, route-by-route, adapters) vs rewrites.
- Risk management: feature flags, parity testing, monitoring, rollback.
- Coexistence: running old and new side by side and stopping the old from growing.
- Momentum: avoiding the migration that stalls at 80%.
- People: keeping engineers motivated through repetitive work.
Common variants
- "Have you ever moved a codebase from one framework to another?"
- "How do you decide between a rewrite and an incremental migration?"
- "Tell me about a JavaScript-to-TypeScript migration you drove."
- "How do you finish a migration that has been stuck for a year?"
Draft your own answer first (STAR: Situation, Task, Action, Result), then compare.
Spotted a mistake or a rights concern? Report an issue