Logo Elisabeth Hendrickson’s Thoughts on Testing, Agile, and Agile Testing

Easily Distracted

December 28th, 2006
Filed under Lessons Learned, Ruminations

Jan Chong is a doctoral candidate at Stanford, studying Organizational Behavior. Jan has two CS degrees, so it’s natural that she would combines her interest in software development and organizational behavior by studying XP teams. She presented some of her preliminary findings at Agile 2005.

One of the things that Jan observed while doing her research is that programmers working in pairs are interrupted regularly. That makes sense. The highly collaborative nature of XP increases work-related interruptions. Moreover, pairing means there’s twice the probability of being interrupted. Fortunately, working in pairs also makes it easier to refocus.

But the big surprise for me in Jan’s report was the observation that programmers working alone created interruptions for themselves. Here’s how Jan described one non-XP, non-pairing programmer:

“…Ian has few external interruptions, which gives him the opportunity to devote long stretches of uninterrupted attention to his primary work task. Instead, however, we find that Ian’s session is filled with points at which he turns his attention away from his primary work task without any external impetus. Ian’s session alternates between engagement in periods of focused work and sustained periods of social conversation or other activities unrelated to work.”

Be honest. Do you ever create distractions for yourself? I do. All the time. And apparently I’m not alone.

My distractions are usually work-related. “I should check my mail,” I think. Or “I’d better look up how to…,” But these short diversions often devolve into, well, goofing off. The next thing I know one quick query on Google has turned into two hours of romping through interesting technology-related articles that have nothing to do with the problem at hand.

Reflecting on Jan’s observation helped me recognize a pattern: I’m particularly prone to these self-generated distractions when working on large, complex tasks. And Jan’s observations of Ian increases my suspicion that creating distractions is a common coping mechanism. (That would certainly help explain the wild success of You Tube.)

So if self-generated distractions provide a way of coping with big, boring, or complex tasks, the cure would be to make tasks small, interesting, and straightforward.

Sure enough, I notice that I’m better at sticking to the task at hand when I take small steps with clear completion criteria. For example, if working on my website, I’ll work on one image, text for one page, or one style at a time. The more I try to do at once, the more tempted I am to create a distraction. Distractions provide a mental break. I feel less overwhelmed, and thus less easily distracted, when working in small, well-defined increments. (You might note a similarity here with TDD, yet another way in which XP supports a high degree of productivity.)

Aha! That means being easily distracted isn’t a sign of personal weakness; it’s an indication that I need to redefine or reorganize my work, take smaller steps, and begin with the end in mind.

I can do that. Right after I check out what’s new on Reddit.com.

2 Comments

Matthew Heusser
Dec 28, 2006
12:13 pm

I think there is something very similar in ‘Zen and The Art of Motorcycle Maintenance’ about “Keeping your Gumption.” I’m pretty sure it’s chapter 26 …

 
hikikomori-san
Apr 13, 2008
6:37 pm

I stumbled upon this since it’s the first result in a google search for [programmer “easily distracted”]. Not being able to focus on working for sufficient periods of time is the bane of my life - it’s the cause of my misery and the indirect reason for my inability to land a job after about 4 years of graduation even though I’m certain I possess the required level of skill and knowledge. Hell, I became almost a full-fledged hikikomori because of this, and I’m not even japanese! I think I have thought of all possible reasons and solutions for my incapability of hard focused work, and I have a strong feeling that the issue described here is the main reason. It is reassuring to know I’m not alone in this, and that it has a feasible and reasonable solution that I can start using right away. I have a good feeling about this. Spending 10 minuites dividing a task into several 10-minuite tasks is probably the best way to spend those 10 minuites.

You wouldn’t believe how much of a problem this is for me, and the stuff I tried to overcome it. I even tried splitting my own personality just to have someone prod me and encourage me to focus on my work… etc. Obviously that didn’t work out well, and it caused some undesirable side effects too!

“Being easily distracted isn’t a sign of personal weakness; it’s an indication that I need to redefine or reorganize my work, take smaller steps, and begin with the end in mind.” I wish I came across this a couple years ago. I will definitely try this one for a few days/weeks and see how that works for me. If it does solve the problem then I will report back here with another post just in case there is another soul out there who might benefit from this. Wish me luck.

-Some stranger passerby.

 

Leave a Comment

Because of the rise in blog-spam, I've turned on comment moderation. If it takes a while before your comment appears, I hope you understand.

Moderation Policy: I approve substantive comments. I reject ads. And if I don't know whether it's substantive or advertising, it sits in my moderation queue until I get sick of looking at it, at which point I reject it, kind of like the questionable meatloaf in the fridge. But please be assured that I think long and hard before clicking that reject link. I really am grateful for every comment any human takes the time to make. (Spambots, not so much. But if you're reading this, you're probably human.) So please contribute to the conversation...