November 19, 2007
Pair Programming or Mandatory Code Reviews?
by Brian Donahue
On a thread in ALT.NET discussion group, Jeremy JarrellBroken Link: http://jeremyjarrell.com/ asked for tips and tool suggestions for doing code reviewsBroken Link: http://tech.groups.yahoo.com/group/altnetconf/message/3811. Eventually the conversation moved to pair programming, and Dave LaribeeBroken Link: http://codebetter.com/blogs/david_laribee/ relayed an interesting tip from Mike RobertsBroken Link: http://www.mikebroberts.com/blogtastic/ on getting developers to try pairing. Dave's paraphrase of Mike's tip was "nothing like a long-assed code review to get developers to try pair programming."
I think that is probably a good approach if you are interested in getting your team into pairing, but meeting resistance. Give them a choice: regular, mandatory code review sessions with their peers, or pair with someone X hours per day. It might help you sell it to your manager, project manager, etc as well.
It would be interesting to see results of one vs. the other with productivity and bug count. I know which my money is on, and which would be less painful for me.