from my work as a developer
open code review policy
I would like to share with you our internal policy we use to do Open Code Review, feel free to adjust it to your needs. I will be very glad if you share any experience, comments and thoughts you have!
Open Code Review process:
- What is needed:
- Two Moderators – one for each team to build team spirit – if team cooperates , it isn’t needed
- Moderators only guard the process, time-boxing and at the end gathering a summary, publish it on a Wiki
- Conference room booked for 1 hour (45 minutes for review, 15 minutes to summarize)
- Class source code printed out on A3 sheets (x2 sets) – less than 300 lines of source code – for largest class it will take more than one hour
- 6 attendees (conference room limit)
- Introduction:
- We are doing review of a code and not the person who wrote that code (!)
- Attendees should play role of maintainers of the code, are they able to find and solve a bug
- Split people for two teams, each of three persons
- Attendees should focus on:
- Structure of a class
- Readability
- Are there any positives? – point that hard on the beginning
- Testability
- Are there any undocumented tricks / hacks?
- JavaDoc comments are adequate to what class / method is doing
- Is class intuitive to understand?
- Go:
- Allow to review the source code for 45 minutes, make notes (in English is preferable)
- Moderator should help to focus on above topics – if they stuck ask about above topics
- Finish the review after 45 minutes (definitively) – cut down any following discussion
- Summarize attendees ideas for 15 minutes – prioritize them
- Make recommendation / suggestion regarding coding style for the rest of team mates
- The end:
- Moderator should write down all the suggestions, recommendations and publish them on a Wiki with the source code
- Send an e-mail to all with the summary and with the link to the Wiki page
| Print article | This entry was posted by Lukasz on February 4, 2010 at 12:22 pm, and is filed under dailylog. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |

about 1 year ago
Hey-o, just found your site on google. You have a bunch of good posts
about 1 year ago
Thanks Łukasz for the idea. I’ve tried it when you gave the presentation at Warszawa Design Patterns Study Group. After having a few OCRs at my company I have to say that it’s a very interesting practice.
Our way of doing OCR is a bit different to yours. Just as I’ve told you right after the presentation, I wanted to try it out with refactoring in real time. If you’re interested, you can find the summary here http://blog.solidcraft.eu/2010/05/open-code-review.html
about 1 year ago
While the process laid out is good, this document is a procedure and not a policy. A policy states that a code review process must be in place, but does not lay out the specifics of the how.
about 1 year ago
Thanks for clarification!