Interview glossary / Tech team vocabulary
Refactoring
Also called: Refactor
Restructuring existing code to make it clearer or easier to change, without changing what it does.
Refactoring is safest in small steps backed by tests. Mixing refactoring with behaviour changes in one pull request makes review and rollback harder.
In an interview
Describe how you protected behaviour while refactoring (tests first, small steps, feature flags) and why the change was worth the time.
Related terms
Interview questions that use it
- A refactor that changed no behaviour broke forty tests. Each one asserts that a particular method was called…
- Marketing, growth, and three apps mint links that 404 after a refactor. What is the fix?
- The product manager and the tech lead of a key team escalate to you almost every week — scope versus…
- A developer wants a week to refactor a module. What do you say?
- A five-year-old Vue codebase is on Vue 3 but written entirely in the Options API with mixins and Vuex. Some…
- How do you assert a login button in React Testing Library?
- You are asked to move a portfolio of two hundred applications to the cloud. How do you approach it?
- Your RAG product serves many companies from one vector index. How do you guarantee one tenant never sees…