From the book "The Senior Software Engineer" from David Bryant
Great read and great quote!
I had a code review once where the reviewer took issue with a stylistic decision that I had made. It had nothing to do with the underlying change or the correctness of the system. It was a classic "agree to disagree" situation and, as I was the maintainer of the code base, I kept the change the way I had done it. He complained to my boss, who then directed me to change it. NOT COOL.
You may encounter a similar situation when having your code reviewed. You may find that the reviewer is insistent that you do things "their way". This is a difficult situation, especially if the other developer is either senior to you or experienced.
The first thing you do in this situation is re-think the change. Ask yourself if the reviewer has a point and if there really is something substantially wrong about the code in question. Chances are, the reviewer is right.
If you are not convinced of this, ask the reviewer to explain in more technical terms why you should make the change they are suggesting. Explain that you don't see anything substantially wrong and that, as the code's maintainer, you feel your style should be given more weight. This might either defuse the situation or lead to a deeper discussion of why the code is problematic.
In the end, the reviewer may just forget about your code, but if the person is persistent and present roadblocks, you might need to just make their suggested changes just to move on. In the end, its more valuable to ship your code than to "be right" in a code review. If you end up taking this route, I would recommend you avoid including this person in future code reviews.
Great read and great quote!
3 comments:
I totally agree with this quote. I notice that some developers think that code reviews are easy. Actually they are not. It takes much more than just being a good developer to be a good reviewer. It takes time to really understand the problem (not just the code), communication skills and a certain amount of respect and empathy for each other.
I totally agree with this quote. I notice that some developers think that code reviews are easy. Actually they are not. It takes much more than just being a good developer to be a good reviewer. It takes time to really understand the problem (not just the code), communication skills and a certain amount of respect and empathy for each other.
I totally agree with this quote. I notice that some developers think that code reviews are easy. Actually they are not. It takes much more than just being a good developer to be a good reviewer. It takes time to really understand the problem (not just the code), communication skills and a certain amount of respect and empathy for each other.
Post a Comment