Pair Programming: "What are you trying to learn?"
I’ve noticed recently that while pairing with various different people that I frequently ask my pair what they’re trying to learn through the approach that they’re about to take.
I tend to use it when I don’t really understand what my pair is doing and want to find out so that I can stay engaged.
It seems to be a more effective and less confrontational way of finding out than saying “What are you doing?” or “I don’t understand what you’re doing”.
There tend to be two outcomes from asking the question:
The following are some recent examples I can remember asking the question:
Of course this question is unnecessary if the driver is providing constant commentary about what they’re doing but it’s easy to forget that you have someone alongside you when you’re solving a problem.
Asking this question seems to be a reasonably effective way of keeping the pairing collaborative.