Peer code reviews will help a lot during coding stage to ensure the correctness of the code.
We know that doing smaller commits will minimize the bugs.
Combining the above two will really help to have a better code.
Following can be a tip to do a peer code review if you use Git.
- Developer does a rebase and do a smaller commit.
- Developer creates patch with git format-patch -1
(sha of commit) - Developer emails the patch with rebase line info !!!
- Reviewer rebase to the same line
- Reviewer applies the patch
- Reviewer uses git difftool to review and mentions that as comment in the code area with //TODO
- Reviewer creates patch and sends as mail to the developer.
If you dont have any other review system, this may help.