Version control enables developers to coordinate changes so that individual work is compatible with the work of other developers. Code reviews are a critical function of working within a software development team in order to prevent defects, ensure code readability and maintainability, and encourage team collaboration and learning. In this discussion, you will apply appropriate due diligence exercises for peer code review.
What due diligence exercises should you do to make sure you are prepared for a successful peer code review? Discuss items such as running unit tests, running the application, double-checking your work, annotating code, and providing clear commit comments. Reflect upon the progression that you have made in these areas, and what makes you feel confident when you submit your source code for review.
In the Devops culture or Agile SDLC model, code review always remains a part of the development process and it is really recommended that developers should write their unit test case along with the code such that they can only test the code before pushing the code to the production environment. So unit test is something that runs on the developers local machine whenever develop make changes to their code. If everything goes fine, he can commit the code in git and push the code to DEV environment, where other big functionalities are being tested. If there also no defects found, the code then pushed to PROD environment. Secondly code review by peer is another way to verify your code. A peer might help you in figuring out the code defects and even peers can help you in making your code flexible. These are the steps that can be followed while pushing error free code to your environment.
Get Answers For Free
Most questions answered within 1 hours.