Peer Reviews

Peer Reviews

Peer reviews, or, as they’re sometimes called, peer code reviews, or just code reviews, are an excellent way of making the most use of your development talent while minimizing the time spent on finding and fixing bugs.

Peer reviews and their benefits are discussed in our course Agile Development.

What do they involve? Essentially, a developer teams up with a peer, and each developer reviews the other’s code to look out for quality, better ways to do things, and to eliminate duplication and redundant coding efforts. The developer walks through his code, explains his logic, shows how he has developed the concept or the story that he has been working on. The peer developer suggests where errors might lie, helps to solve thorny issues and in general works to improve the quality of the code.

While peer review is an essential part of both the scientific and academic publishing world, it seems to have only recently gained some momentum in software development, where even modest applications can have thousands of lines of code – and thus tens of thousands of opportunities for error.

Successful peer reviews are a significant indicator of quality and, if implemented regularly, peer reviews can save a lot of time and money. If errors are identified and corrected before they’re integrated into further builds, there will be fewer defects and projects will get delivered more quickly.

Indeed, the book “Code Complete” indicates that after instituting peer review, “[t]he Aetna Insurance Company found 82 percent of the errors in a program by using inspections and was able to decrease its development resources by 20 percent.” Reducing your coding expenses by a fifth is a real savings, and it’s done entirely by utilizing the human resources you already have.

If you’re game, you could quietly implement a peer review program by tapping a couple of programmers who respect each other and the process, and watch how other developers or teams react when they see the quality of the code improving. Of course, this could already be happening in your organization on an informal basis. Or you could take a top-down approach and simply implement a culture and process of peer review as part of the new normal.