TW洞见 | 改善结对编程体验的十个办法

从专业和个人的角度出发,你上次体验到既高效又很有收获的结对编程是什么时候的事了?我们也很想知道,为什么很多次我们有一些特殊的结对体验并不是我们预期的那样愉快和有效。不管是不是敏捷项目,结对编程对于软件项目团队的好处已经无需多言,但是,这项实践的成功需要实践者们相信它的优势,并且的确能够乐在其中。

But how can we make it work? Merely finishing the task the pair is responsible for is not enough to call it a success. Pairing is much more than just getting together to complete a task: it's an opportunity to strengthen relations with your teammate; a chance to teach and learn, not only technically, but also culturally; to understand what your partner craves, what motivates and what discourages her/him.

Marcos Brizeno, a brazilian Consultant Developer at ThoughtWorks Recife, mentions in one of his posts the challenges faced when pairing, which for him are:

  1. Infrastructure - the common hardware and software setup used by the team when pairing;
  2. Fatigue - the energy spent by a teammate to keep the focus during the pairing activity; and
  3. Ego - the challenge of staying humble and avoiding arguments.

Truth is, there's no recipe or formula to make the practice of pairing more enjoyable. But I'll try here to expose and discuss some actions we can take to improve the pairing experience and to help overcoming some of the challenges raised by Marcos.

#1 - Do not centralize driving

The team member who feels more comfortable with the development environment tends naturally to centralize the driving, in part because the other one usually thinks that things will slow down if she/he takes control of the keyboard. The downside is that the partner that is less used to the environment will stay the same at the end of the experience. Setting a time interval to change who's taking control may help balance driving.

#2 - Manage the focus together

For several reasons, one teammate may be more focused than the other at certain times. If this becomes a problem, the more focused teammate should call to responsibility, expose the situation, and discuss a solution. It may be very complicated to wait for your partner to recover focus by her/himself, and losing your own focus won't help either. Techniques such as Pomodoro can help solving lack of focus, but the pair should walk together towards the best solution.

#3 - Avoid working alone

Sometimes your partner may need to be absent for a while. When this happens, try to wait for her/him to come back. Try to do something else to help the project or the company, or use the chance to take care of personal stuff. Of course, factors such as sense of urgency should be taken into account; if the activity can't be stopped for any reason you may carry on, but be sure to pass context of what was done when your partner comes back.

#4 - Alternate moments of concentration and relaxation

Focus is important, but too much focus is harmful. People are not robots who can work for 8 hours or more with no interruptions. Do periodic intervals and put the work entirely aside during them. Try to do stuff together, like having a conversation about subjects in common, playing video games, or going out for coffee.

#5 - Celebrate your achievements!

At the end of one step, or of the whole pairing activity itself, it may be quite rewarding to take a few steps back and contemplate what was built or achieved. Celebrate! It may also be a good time to share the results with the rest of the team.

原文发布于微信公众号 - 思特沃克(ThoughtWorks)

原文发表时间:2015-02-03

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

发表于

我来说两句

0 条评论
登录 后参与评论

相关文章

来自专栏腾讯社交用户体验设计

Windows 10 新特性变化研究 - 腾讯ISUX

1562
来自专栏MixLab科技+设计实验室

如何用代码控制浏览器下载知乎大v的粉丝数据?

欢迎用户在后台留言需解答的问题, mixlab 将会不定期的从中选择提供解决方案。同时 mixlab 微信群已经汇集了机器学习、自然语言处理、前端、后端、产品经...

1133
来自专栏知晓程序

朋友圈秀操作时间到!有了这个小程序,还怕别人不给点赞?

1184
来自专栏程序员的知识天地

程序员电脑桌面是什么样的? 网友: IE浏览器必删, 不能留!

近日,有网友提问道:作为一个程序员,一直使用的都是默认Windows7桌面,最近被妹子吐槽太丑,打算换一个,不知道各位程序员的桌面都长什么样子?

1132
来自专栏技术博客

博客园博客评论一个奇怪的现象~~这应该不是圣诞礼包

昨天晚上睡觉前来博客园逛了一圈,看了看首页,发现了一篇不错的文章。http://www.cnblogs.com/hegezhou_hot/p/3489795.h...

1192
来自专栏ThoughtWorks

TW洞见 | 用TDD影响设计

在听过Martin Fowler、Kent Beck和DHH关于TDD的讨论以后,我想也把我关于TDD的想法记录下来——我为什么要遵从它,以及为什么我会发现它做...

3648
来自专栏守候书阁

2018前端值得关注的技术

2017悄然过去,2018已经来到。人在进步,技术在发展。2018年前端有哪些领域,技术值得关注,哪些技术会兴起,哪些技术会没落。下面就我个人的判断进行一个预测...

63415
来自专栏Coding迪斯尼

java开发系统内核:放大招!为系统开发星球大战游戏程序

2185
来自专栏何俊林

(已开源)一款仿线上电商项目《有宠商城》

本文来自赵若位同学开发的一款仿线上电商项目《有宠商城》,已经开源在github,点击阅读原文,可查看本项目github地址。 项目介绍: 前言:学如逆水行舟,不...

5736
来自专栏PPV课数据科学社区

数据可视化分析工具大集合

俗话说“巧妇难为无米之炊”。数据时代,没有一款好的数据可视化分析工具,光有团队怎么行? 商场如战场,数据是把枪。亚马逊运用大数据为客户推荐商品信息,阿里用大数据...

5175

扫码关注云+社区

领取腾讯云代金券