Originally posted in efficientuser.com
Everyone has there own set of best practices. Here are the few points which I would like to share with you regarding the code review.
The aim of the code review is to build the team spirit, improve the code quality and collaboratively learn the best practices.
Make sure your CRR or commits are based on a single feature or story or bug fix. Keeping multiple features or bug fixes in a single code review request will create more confusion. So keep it simple.
Add everyone from the team to your code review request. At least 2 reviewers should review your code before it has been merged to the remote repository.
Add information about what has been changed in the CRR. Add the related tickets/story/bug link in the CRR (in most of the cases). This will help the peer-reviewers to get insight or information about the task.
Send an Instant message to your team when the CRR request is sent or when the individual completes reviewing a particular request.
If you have any automated system like webhook or slack notification, that's fine. Otherwise, it’s OK to maintain a separate channel or group to discuss CRR.
Keep the commit message concise & clear (if it is a bug fix mention it clearly).
When you are reviewing, look into the code and make sure you understand what code does actually; if there is any doubts/clarification needed highlight the code and add comments for clarification.
The aim is to have a readable code so that the remaining team member can also understand.
If you find the code is difficult to understand or it could be even simpler feel free to suggest the better way to do that.
It’s a good habit to suggest something good instead of just mentioning that a particular piece of code can be improved.
Don’t urge to get your code get reviewed; Give some time to the reviewer and add a gentle reminder if it takes too long.
Stay humble, all these processes are to improve ourselves in a better way.
The code review process is to improve the code quality and build the team spirit in a better way. Collaboratively we can learn more from Code Reviews.
Help me to test whether the comment section is working? Leave your feedback in comment section, please!
Click that follow somewhere in this page to see more content in future!!