I’ve been programming for about 10 years and for half of those years I had an office/cubicle and for the other half I worked in an open office floor plan. Given the choice, I always preferred an enclosed workspace, but open office floor plans are becoming more common. This rising trend inspired me to come up with a few techniques to deal with the distractions.
I recently started a new job and they have an open office floor plan. But for some reason this doesn’t bother me at all and I rarely get distracted. In fact, I remember something happened to me during my interview that would have normally distracted me like crazy, but had no effect at all. I was hours into the interview and collaborating with someone to fix a problem. This day, someone had brought their dog to work and they weren’t watching it for a split second. During that moment, it ran underneath my chair and walked between my legs. I think this would distract nearly anyone, but for some reason it didn’t take me out of the moment. I pet the dog with one hand and continued my conversation without losing track.
I’ve since come up with a hypothesis as to why I don’t have trouble paying attention at my new job. It has to do with a detail I haven’t mentioned yet: At this company, engineers pair program with each other the majority of the time. Here’s my hypothesis: Pair programming gives you the focus you need to overcome the distractions of an open office floor plan. In fact, it gives you so much focus, you can pay attention to your tasks better than you could in a private office.
Saying that pair programming keeps you focused is nothing new. There are multiple studies that say as much:
and
In addition, multiple studies report that open office layouts are distracting:
and
Increased focus is a nice perk, but it’s just the tip of the iceberg. There are many other benefits to consider:
Despite all this research, I haven’t seen a study that explicitly measures distraction levels in an open office environment when combined with pair programming. If you find it hard to concentrate in an open office environment, you should try pair programming with someone and see if you’re still distracted. You may come to realize that open offices aren’t the issue. It’s working alone while in an open office that is the issue.