Video in progress
If they leave a lot of comments on your code in code review, how do you react?
I take the comments as opinions about the code, not as an attack on me. I ask about what I don't understand, if I disagree I give my reasons, and I fix the rest and mark it "done".
📖 Answer
It's normal for a junior's first PR to get 30 comments, especially while the team's style and naming rules are still unfamiliar.
In practice I behave like this:
- I reply to every comment: fixed, or a question, or a reasoned objection;
- if I don't understand, I ask "why is returning an
Optionalbetter here?" instead of fixing it blindly; - if the same comment appears in three places, I find and fix that issue across the whole code myself;
- so I don't repeat these mistakes in the next PR, I keep a small checklist.
Disagreeing is fine too, but with reasons: "Here I kept a plain for instead of a stream because there's a checked exception inside. Should I change it anyway?"
In an interview, don't answer this with the general "I take criticism well". Give a small example: which comment taught you a lot.
Sign up to mark studied questions and save your progress.