Something I have been thinking about writing for a while and a huge aspect of Software Engineering is the code review process.
My motivation to write abouth this comes from my own experiences where pull requests are fast and lean. Not only do I think about ways to improve how I create short and concise pull requests - adding appropriate details in the description adds context useful for the reviewer. This post is my way of reflecting on my ability to review code and how I can get better.
Let’s start, once you’ve found an optimal way to build, fix or add some new functionality you’ll create a new branch
(dev/pt/cool-new-feature
) push your changes and create a pull request. You already know this, but what should happen next? Some
looks at it and gives it a tick but it can and should be seen as the perfect time for team collaboration, optimising code and
ensuring clarity for the next Engineer.
What is a pull request and why do we need them?
Looking and reflecting at both sides of the code review process, below are some of my thoughts.
When looking to develop code, some important guidlines to bare in mind:
As someone looking to review code its important to remember some of these things:
Read more of the Do and Don’t points here.
Further to the above, as a reviewer at a high-level you should be wary of:
Disagreements are common place and when they happen, as the reviewers it is important to be polite and respectfully describe any suggestion you’re making. Back-and-forth will inevitably happen, and getting your point across may take that.
If you found this interesting I would encourage you to have a look at Google’s eng-practices on GitHub for more information and the Goole Style Guide.