As I may have mentioned I’m running a session at Agile 2009 called ‘Debugging Pair Programming’. There’s a preview of the session tomorrow night at Skills Matter and I’ve just finished preparing for it.
Mind if I run a couple of things past you?
I’m going to use personas in the session as a tool to help people discuss the anti-patterns that I think cause teams to struggle with pair programming. You’ll hopefully recognise yourself or people you’ve worked with in the past in these personas. What do you think? Have I missed any? Are they too obvious?
“For most tasks, pair programming just slows me down. When you pair with me, it’s not pair programming, it’s mentoring”
Goran has been programming professionally for over 15 years and draws on that experience to write clean expressive code. He can code fluently in C++, C#, Python and is handy in numerous other languages. He knows all the common design patterns and when to apply them, as well as numerous refactoring strategies.
Goran has tried pairing a few times, but doesn’t really see the benefit. He feels that his level of experience makes for rather uneven and therefore pointless pairing sessions.
“I just hate having to share the keyboard”
Bart is really gifted programmer who gets a huge amount done with few mistakes, but his team-mates often find it hard to understand and change his code. He’ll often use jokey or sarcastic names for variables and methods and has a tendency to write long, complex, methods. Bart drinks a lot of coffee and works long hours, often getting quite obsessed about finishing a particular piece of work.
Bart doesn’t really like the idea of pair programming. Although he understands the benefit of ‘no code ownership’ in theory, in practice he feels quite possessive about his code, and finds himself quickly becoming aggressive when discussing design decisions with other members the team. He often seems to upset his team-mates when he just thinks he’s being honest with them.
Moira, Anxious Project Manager
“My team doesn’t have time to work in pairs, we have too many bugs to fix”
Moira used to be a programmer back in the day, working on COBOL mainframe systems, so she knows the ropes. As everyone sticks to the plan, she sees no reason why things should go wrong. Right now her team are in the ‘testing phase’ of another project, and as usual there’s a frenzy of activity as bugs are uncovered by the testers and passed to the developers to be fixed.
Moira just can’t see how halving the number of bugs being worked on by adopting pair programming can help her team meet their deadline. To her, pair programming just seems like a fad that helps programmers have a better time at work.
“I’m scared people will realise I don’t know what I’m doing half the time”
John is a contractor, a hired gun. He’s paid at least twice as much as most of his team-mates who are salaried. He’s experienced and highly competent, but secretly frets that he isn’t really worth the extortionate daily rate that he’s paid, and feels guilty when he gets stuck or has to ask his team-mates for help.
John has never tried pair programming but he worries how his team-mates will feel when they realise he sometimes needs to spend 20 minutes reading around blog posts and mailing list archives, or writing throw-away code to figure out how to use a library he’s never used before. Won’t they end up resenting him for wasting time?
“I’m just used to programming on my own”
Sarah has been programming since her early teens and got top grades studying Artificial Intelligence at University. Sarah is naturally shy, and has always found comfort in programming as a place where she can express herself and her ideas without having to talk to people face-to-face, which she finds awkward and embarrassing. She contributes to a couple of open-source libraries and can often be found on IRC channels and mailing lists supporting the users of those libraries with friendly and eloquent responses.
For Sarah, programming has always been a solitary activity. She finds the idea of pair programming strange and quite intimidating, since she doesn’t think she’s very good with people.
Gary, Once Bitten
“Pair Programming is a load of old bollocks”
Gary has worked on a project before where the team claimed to be ‘agile’. They used Scrum and user-stories for planning their work, and the scrum-master encouraged them to use pair programming. In fact, the scrum-master forced the team to work in pairs, by picking pairs at the start of each 2-week iteration, and making sure the developers stuck to those pairs for the entire duration of the iteration.
By the end of each iteration, most of the pairs were so sick of working with each other that they would barely speak for several days afterwards. Gary found he would come in earlier and earlier so that he could get some time hacking on ideas he’d had but didn’t have the chance to play with during the main working day. He found pairing to be a drudge and a chore.
Rod, Whacky Races
“Every time I pair with someone new, I have to learn their bloody keyboard shortcuts”
Rod has just joined a new team who are using UNIX text editors to do their development in Perl. Rod is used to using the Eclipse IDE and has never really used these text editors before so he feels awkward and clumsy when he gets the keyboard. This is compounded by the fact that his team are using a mixture of editors and operating systems, with some people staunch EMACS users, others using VIM and yet more using Textmate on the Mac.
Rod likes the collaborative aspect of pairing, but feels hampered by the variety of development environments that his team uses. What can he do?
All thoughts and comments appreciated. If you’re in London tomorrow night, why not come along to the session and let us all know what you think?
Really liked the idea of the session. I’ll definitely be there.
About the personas, I’m missing one for the inexperienced programmer, eager to learn but probably too shy to try programming with other people. He’s used to be given really simple and isolated tasks, and normally feels afraid of making any change in the codebase. He also thinks he’ll be slowing other people down if tries to pair up with them.
What do you think? Maybe it’s just me but it seems all the personas are experienced professionals.
Good point Ivan, thanks. I guess I had seen Sarah as covering some of this, but you’ve described it much better than I did.
I’ll be there tonight Matt.
It might not be a useful persona to focus on but I feel that some people don’t want to pair because it means they can’t do everything else that they want during the day: personal email, im and twitter spring to mind.
I wonder if another persona is someone above project managers, in a company where there are multiple PMs all working on different projects, that thinks pairing is going to remove resource from one project in favour of another. Moira might be enough to cover this though.
Ha yeah this is good. I’ve worked with the opposite of Rod, someone who incredibly insisted on using Vim mode in a different IDE to the one that everyone else was using.
At GU the machines were a standard build including ide, tortoise etc – its the only way when you’re all rotating around, really.
Hope it all goes well
I’m new to the Agile way of working – I like the idea of it – and I don’t at present I work in a company that operates in a such a way. I’m frequently reading up around the topic and found this blog about pairing particularly interesting as I’d never really been exposed to the reasoning behind develops adverse to the idea. It will be interesting to read what ideas come from the session you are putting on, will they be online to view?
Good luck with the session and look forward to reading about it
Leave a comment