How to Reduce Pain in Code Reviews

How to Reduce Pain in Code Reviews

How to Reduce Pain in Code Reviews

Why is code review so painful?

Code reviews are stressful, especially as a new developer. And yet, it's such an integral part of everyday life as a software engineer. I posted about this a couple of months ago:

LinkedIn Status


From the discussion that ensued, here are some additional tips for reviewing code most effectively:

  • Use "we" instead of "you" whenever possible, but stay clear of sounding like an obsequious waiter asking, "...and how are we enjoying the duck?"
  • Before opening an issue, ask: "does this matter?" Style is essential to a certain point, but the crucial thing is, will someone else understand this code later on.
  • Code review is highly dependent on your company. For example, at LinkedIn, we trust that the submitter likely found the right solution, and reviews are focused mostly on maintainability and company-wide code standards. In other places, code review could have a much higher bias towards validating functionality.

Where to go from here?

Before submitting a code review, make sure to review it yourself first. Self-review is an easy way to reduce the number of issues present within your code and to sharpen your review skills!

Should you get less than compassionate code reviews, do your best not to take it personally. Not everyone has read about how best to review, and are unaware of how negatively they affect others when they bash a submission. Reply with warmth when you disagree. Approach them directly about raising issues more compassionately or mention it to their manager: this is an easy way for them to grow, and most software engineers want all feedback they can get to improve. If all of this fails, keep your head up and push through. Act as an example they can learn from, and you will outshine these peers who spread negativity.

Code review is just one aspect of software engineering, but it's a core piece. Expect another deep dive into code reviews in the next article, after which I'll broaden to other software engineering topics.

Share this article

Leave your comments

Post comment as a guest

0
terms and condition.
  • Alan Kehr

    Very helpful

  • Luke Price

    Code review is painful and ugly for any software engineer

Share this article

Benjamin Hendricks

Tech Expert

Benjamin is a passionate software engineer with a strong technical background, with ambitions to deliver a delightful experience to as many users as possible. He previously interned at Google, Apple and LinkedIn. He built his first PC at 15, and has recently upgraded to iOS/crypto-currency experiments. Benjamin holds a bachelor's degree in computer science from UCLA and is completing a master’s degree in Software Engineering at Harvard University.

   
Save
Cookies user prefences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline