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:
From the discussion that ensued, here are some additional tips for reviewing code most effectively:
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.
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.