The Code Review process
I often heard that Code Review is critical because it helps us prevent bugs. It is true, but there are other things to consider. I will try to explain more about this process from my experience.
What is Code Review?
It is a process where a team analyzes a software source code to improve code quality, resolve errors and find bugs. But, it also helps share knowledge and increase the collaboration of a team. In addition, this process allows the crew gets time to communicate, raise concerns, and find solutions to problems.
Given enough eyeballs, all bugs are shallow. Linus Torvalds
Code review is a necessary process that every software team must follow to build better products.
What is the process flow?
The most know flow of code review starts with a pull request. A pull request is a developer request to merge new changes into the main branch. Then, all team members will be able to start the code review.
Before the code review begins, the author must create a?changelist. This is a set of changes to source code that the author wants to merge in to the team’s codebase.
If you sent a new PR, it is crucial that you shouldn't be disappointed to receive comments and suggestions. You take this feedback as a process of learning.
The process ends when the reviewers approve the PR.
Looks good to me
For a better code review process, work with a tool like GitHub or GitLab.
领英推荐
How should be a review of code?
There is not a universal rule. It is dependent on the team, programming language, and other things. In my experience, I have worked with the following concepts:
Don't criticize, MENTOR and EDUCATE
Conclusion
Code reviews should become part of a software development team's workflow to ensure that another team member has looked at every piece of code. Many companies have already adopted this practice: open-source communities heavily influenced and improved tools.
References:
https://dev.to/mkovacek/importance-of-code-reviews-163p
https://dev.to/ornio/code-review-and-clean-coding-principles-48o7?signin=true
https://dev.to/milanlatinovic/code-review-best-practices-good-bad-and-the-ugly-55h3
https://about.gitlab.com/topics/version-control/what-is-code-review/
https://sourcelevel.io/blog/what-is-code-review-why-is-it-valuable-and-how-to-start