Resolve a Disagreement Over Code Review Feedback
BehavioralModel answerLast updated
Demonstrate how you navigated a tense code review disagreement with a teammate and reached a productive outcome.
The Question
"Tell me about a time you disagreed with a teammate during a code review. How did you handle it, and what was the outcome?"
Context
Code reviews are a routine part of engineering work, but they can surface real friction — over style, architecture, correctness, or priorities. Interviewers use this question to assess how you handle low-stakes but emotionally charged disagreements with peers.
What the Interviewer Is Assessing
- Self-awareness: Can you admit when a disagreement felt uncomfortable without blaming the other person?
- Communication: Did you escalate constructively or let it fester?
- Technical judgment: Were you able to separate "I prefer this" from "this is objectively better"?
- Collaboration: Did you leave the relationship intact and the team better off?
What Is Expected
Use the STAR format. Pick a real, specific example — not a vague hypothetical. Be honest about your own role in the tension, show the reasoning you used to resolve it, and state the concrete outcome.
Hints
Hint 1
Pick a scenario where you were either the reviewer or the author — both are valid. Make sure your story has a real moment of friction, not just a mild preference difference.
Hint 2
Show that you tried to understand their perspective before defending your own. Phrases like 'I asked them to walk me through their reasoning' signal maturity.
Hint 3
End with a result that is measurable or observable: the PR was merged with a specific change, you adopted a new team convention, or the working relationship improved.
Model answer
Easy Try it yourself first — then compare your approach, complexity and edge cases.
What the Interviewer Is Really Looking For
This is an interpersonal signal question disguised as a technical one. The interviewer does not care which side was "right." They want to see emotional regulation, clear communication, and the ability to separate ego from engineering judgment. A red flag is any answer that frames the other person as simply wrong and you as simply right, with no nuance.
STAR Outline
Situation
Set the scene briefly. What was the project, who was involved, and what was the nature of the review?
Task
What was your role — reviewer or author? What made the disagreement non-trivial (i.e., not just a typo)?
Action
This is the core of your answer. Walk through the specific steps you took:
- How did you first respond to the friction?
- Did you seek to understand their reasoning before defending your own?
- How did you escalate (or choose not to)?
- What communication channel did you use (async comment, quick call, team discussion)?
Result
What was the concrete outcome? Did the code change? Did a team norm emerge? How did it affect your working relationship?
Example Answer
Situation: I was the author of a PR that added a caching layer to a reporting endpoint. A teammate left a blocking comment saying the cache invalidation logic was wrong and would cause stale data bugs. The comment was blunt, and my first reaction was defensive — I had spent two days on that logic and was confident it was correct.
Task: I needed to either defend my implementation with evidence or acknowledge the issue, all while keeping the code review productive and not letting the tone sour our collaboration.
Action: Instead of replying immediately, I re-read their comment carefully and realized they were describing a race condition I had not considered: two writes arriving within the same TTL window. I still was not fully convinced it was a real risk given our write volume — maybe one write per minute on average — but I recognized I could be wrong.
Rather than debating in PR comments, I sent them a short message asking for a fifteen-minute call to walk through the scenario together. On the call, I drew out the sequence of events I had designed for and asked them to show me the exact case they were worried about. They did — and they were right. The race was real, though rare.
We agreed on a fix together: instead of TTL-based invalidation, we switched to explicit cache busting on write. I updated the PR, and they approved it the same afternoon. I also suggested we add a short note in our team wiki about when to prefer explicit invalidation over TTL, so the next person would not have to rediscover this.
Result: The PR merged the same day with a more robust solution than I had started with. More importantly, that teammate and I developed a pattern of using quick calls instead of long async comment threads for anything that felt contentious — it saved us significant back-and-forth on at least three other PRs that quarter.
Trade-offs and Depth Points
- Async vs. synchronous resolution: PR comments can escalate in tone quickly. Knowing when to move to a call is a judgment skill worth mentioning explicitly.
- Being the reviewer, not the author: If your story is from the reviewer's side, show how you framed feedback as a question ("I'm not sure I follow the reasoning here — can you help me understand?") rather than a verdict.
- When you were wrong vs. when you were right: The strongest answers show intellectual honesty. If you were wrong, say so plainly. If you were right but the other person needed convincing, explain how you built the case with data or examples rather than authority.
Common Mistakes
- No real conflict: Saying "we had a minor disagreement but resolved it quickly" tells the interviewer nothing. Name the actual tension.
- Making the other person the villain: Any framing of "my teammate was being unreasonable" without examining your own behavior is a red flag.
- Skipping the outcome: Many candidates describe the action in detail but forget to state what actually changed — in the code, the process, or the relationship.
- Over-abstracting: "I always try to communicate openly" is not a story. Ground every claim in a specific moment.