Delivering Better Products Through Intention Driven Pairing
November 7, 2019
Some things come intuitively in software development. Good design is good when it’s easy to work with. Well written code is easy to read, understand, and change. Good teams are a joy to be part of. And good process makes our day-to-day work more efficient.
However, some practices do not feel right at first. Pair programming is one of them. When I first started pairing it felt uncomfortable. I felt I could get more code written if I paired alone. And I was right.
But pairing isn’t about writing more code. It’s about writing better code.
And it works. But if it works, how do we, as engineers, get comfortable with pairing?
A different way to pair
When I first started pairing, I did not enjoy it. As a driver, explaining and justifying my every move felt frustrating and slightly awkward. I also felt a sense of dread that my pair and I would disagree, causing us to slow down and create an uncomfortable work environment. I wasn’t confident in our ability to maintain productive conflict.
This dynamic causes an emotional drain on both parties. This often leads to the conclusion that “pairing is not for us”. When in actuality, we haven’t given it a fair shake yet.
I realized it was important to check in with myself on the energy I felt toward pairing. This notion of subjective “energy level” is how I began to assess my progress. I’d answer the question, “how did that go”, by checking how I felt at the end of a pairing session. Did I feel drained or energized?
This question led me to Intention Driven Pairing. It was adopting this practice that led my team and I’s pairing to a new level.
Because ultimately, pairing is a practice. It is a crucial skill to practice alongside many of the other practices that make up the software development process. At Connected, our mission to Build Better Products goes beyond our own work and into helping everyone in the product community practice their skills. It’s why we’re hosting the Global Day of Coderetreat so that we can take time to focus on deliberate practice.
One of the areas we want to point this focus is Intention Driven Pairing—a methodology where a Software Developer is able to continuously receive feedback on their coding and pairing practice. So how does it work?
Intention Driven Pairing is a daily practice. It is broken into three parts:
- Set Expectations: Start of the day
- Work in Timeboxes: During the day
- Close with a Retrospective: End of the day
1. Set Expectations
Beginnings and endings are powerful. We launch ships. We kick-off projects. We celebrate firsts in our personal lives and those of our loved ones. But most of us miss out on recognizing an important first that happens every morning: The start of our day.
Setting expectations is an opportunity to set the stage for the day. It’s broken into two parts:
- Sync on tasks and time
- Set learning goals
Sync on tasks and time
First, we review our work-in-progress work and agree on what is realistic to complete in a day. Here, we can afford to dig a little deeper than how we cover status at daily standup.
We also look at each others’ calendars and schedule a time to pair. I find the explicit commitment of booking time in the calendar holds us accountable, and communicates our intention to the team. This improves the likelihood that we actually end up pairing in the first place.
Furthermore, this approach is a realistic first step to getting a team to pair more often. We may start with only booking half an hour a day to pair. As we get better at it, we can progressively book more time. Eventually, you may become a “pair by default” team, though it’s unreasonable to assume that a team will adopt pairing in that manner in a single day.
Set learning goals
It is in the nature of our profession that we must learn continuously. Again, this step calls it out explicitly. For software developers, there is a natural tension between learning and delivering. It is important to bring it up front and center so that we can plan our pairing strategy accordingly.
For example, if we are behind on our sprint and my pair has the necessary domain knowledge to complete the work, I will propose that they “drive” while I “navigate.” I would then take notes silently on the areas of the domain I don’t understand so that I can go back and learn it. On the other hand, if we are on track, I may propose to “drive”, as it would allow me to learn the domain as we complete the work. The downside is that we would move a lot slower.
The value of this step is that we are setting expectations on how quickly we will complete the work vs. how much we learn from doing so.
Examples of learning goals:
“I want to become more efficient at coding through the use of tools and shortcuts”
2. Work in Timeboxes
Timeboxes are a common strategy used in Agile Software Development to ensure time is used wisely. Specifically, when a timebox is assigned to a task, the task is closed once completed or once the timebox has elapsed. The only variation we employ is that we only “abandon” the timebox if both me and my pair need to switch context away from our task due to an interruption.
Here is how we use timeboxes in Intention Driven Pairing:
- We agree on a repeatable timebox, usually 15 to 45 minutes long
- We use a timer to strictly adhere to the timebox
- We aim for uninterrupted focus during the timebox
- Interruptions are deliberate and intentional
- If interrupted, we both decide whether to switch context
- If context is switched, the timebox is abandoned
- After the timebox elapses, we check in with each other, and take a break if needed
One of the advantages of pair programming is that a pair of developers are more resilient to interruptions in the first place. For example, if someone approaches a pair to ask a question, the “navigator” can provide an answer, usually without the “driver” having to break context, or even focus. Therefore, an abandoned timebox should be a rare occurrence—when it happens it means that the matter is urgent enough to require both developers’ full attention.
While working in timeboxes may feel rigid and contrived at first, it can unlock value over time. Especially when we begin tracking our timeboxes. How many did we complete in a day? How many were abandoned? What insights did we discover? This can be extremely valuable data for a team that struggles with focus or delivering at a sustainable pace.
3. Close with a Retrospective
This leads us to the third and final part of the Intention Driven Pairing methodology. The end of the day is an opportunity to imbue a moment with meaning. We can look back on the day and ask ourselves: What have we done? What have we learned? What can we bring to tomorrow? What should we leave behind?
The retrospective should be a personal, one-on-one with your pair. You have shared meaningful periods of your day and should reflect on them deeply together. You should be honest. And you should look to provide valuable feedback.
Even a five-minute pairing retrospective can be extremely valuable. Each individual can share their one top-of-mind item. Taking one or two items into the next day helps everyone incrementally improve their coding and pairing practice.
Examples of pairing retro feedback:
“I get disengaged when I navigate for more than three timeboxes in a row. Next time, can we try switching more often?”
“Relying on console.log really slowed us down. Next time, can we try setting breakpoints using Chrome dev tools?”
If you feel your end-of-day retros are short, don’t stress. Frequency is more important than duration. Whatever you do, make sure you don’t skip this step. Why? Because the value of the feedback improves over time.
As we build psychological safety with our pair, we are able to share more deeply. We recognize the positives in our pair that we may have been taking for granted. And we recognize the negatives in a more open and insightful manner.
Closing thoughts (and a word of caution)
For our teams at Connected, Intention Driven Pairing started off as an experiment. For us, the experiment was a success. In our every-present mission to Build Better Products. We found that Intention Driven Pairing kept us focussed and improved the efficiency and quality of the products we built, helping us delight the end user and drive meaningful commercial impact. I encourage other teams that relate to these challenges to try Intention Driven Pairing out for themselves.
However, to quote the Agile manifesto, “we are uncovering better ways of developing software by doing it and helping others do it.”
For every engineer and every team, constantly uncovering is the sign that the practice is working. Practice doesn’t make perfect, but it does open you up to better. I invite you to keep uncovering. This means changing, tweaking, adopting, and abandoning. This is encouraged, as long as we are honestly asking ourselves:
Is it actually not working, or is it just uncomfortable?
Intention Driven Pairing only works if we live up to the intentions we set out for ourselves. So get out there and practice.
Wed Jan 11
Tammy’s 2023 Outlook: The Year of More
We’re welcoming 2023 as the year of more. As an exciting time of transitions, growth and continuing to deliver impact, hear what Tammy Chiasson, Managing Director of Thoughtworks Canada, envisions for our people, partners and methods in 2023.
Thu Dec 1
Global Day of Coderetreat Toronto 2022
Earlier this month, we hosted Global Day of Coderetreat (GDCR) at our Toronto office. After a three-year hiatus, we wanted to re-awaken some of the community enthusiasm when we hosted the event for the first time back in 2019. This year we planned for a larger event which turned out to be a really good thing as we nearly doubled our attendance. And in case you were wodering, this is how we did it.