How do you handle it when you disagree with feedback in a code review?
Suggested answer
The interviewer wants to know whether you can separate your ego from your code.
- Ask questions to understand the reviewer's reasons properly before you reply.
- Answer with evidence: measurements, documentation, the team's conventions, not gut feeling.
- If you still disagree and the issue is small, go with the reviewer's way or note it to discuss later; don't block the PR.
- If the issue is big, move to a direct conversation instead of a long argument in the comments.
One real example, told briefly and with a concrete outcome, is more convincing than a list of principles.