How to Prepare for Code Reviews

Here are some actions you can do on your own to ensure a successful code review session.

Oren Cohen
3 min readOct 30, 2022

--

Photo by John Schnobrich on Unsplash

Are you new to code reviews? Always feel like you mess them up in one way or another? Today I have some essential tips for you to prepare for code reviews properly.

The correct way to prepare for code reviews is to make sure you can review your code first, eliminate any mistakes you made along the way, test that the code is doing its intended function, and make sure it upholds your team’s code standards. Let’s dive into these more in-depth.

Review Your Own Code First

Most development teams use git tools like GitHub, GitLab, or some other git repository to review your code with or without you.

So, if you use GitHub, your process may look like this:

1. Write code.

2. Test code.

3. Open PR and assign reviewer.

4. According to the review answer, merge or fix.

From now on, you’ll add a slight change and add a Draft PR. This means you already open the PR but as a Draft. In other tools, that might mean you have to prefix the name of the PR with “WIP:” or something similar.

--

--