Senior
There is an old module in the project, the business wants to add a new feature quickly, but you want to refactor the module first. What would you do?
sobes.tech AI
Answer from AI
In such a situation, it is important to find a balance between speed and quality. I would:
- Assess how critical the refactoring is for stability and supporting the new feature.
- Suggest breaking the work into stages: first, add the minimally necessary functionality to deliver quick results to the business.
- Simultaneously start refactoring to improve the codebase and simplify future development.
- Discuss with the team and business the risks and benefits of each approach to choose the optimal path.
This way, you can satisfy the business without compromising code quality.