Where's Your Coding Happy Place?

Monday Apr 20th 2009 by Eric Spiegel

Developing software code is an activity best done in an optimal environment. Then again, is it more a question of external location, or internal mood?

Where’s your favorite place to write code? Leave a comment below.

“Where are you?” The question was urgent.

I was sitting in the office of a peer manager, who was on the other end of a cell phone conversation that I thought was absolutely ridiculous. Earlier in the morning she had left a message for an AWOL developer requesting he call her – immediately.

Now it was just after lunch and I was in her office to find out where things stood on her team’s side of an inventory management module. My team needed to start integration testing with her team’s code.

The problem was that her developer was nowhere to be found. She was not a happy camper.

It turns out he decided to work from home that morning because he was working late to meet the deadline. He didn’t inform her directly, but had told a coworker as they walked out the prior night.

But that same teammate called in sick the next day and forgot to inform his boss about his buddy working from home.


So what did I find ridiculous about their exchange? I still can’t believe these miscommunications still happen with all the means we have for communicating – especially among the technically savvy – but they happen every day.

However, that isn’t what most irked me. I believe that every developer is a unique human being who works best in different environments. Did it really matter where he was?

No, what really mattered was that he didn’t communicate effectively regarding the status of his code.

Whether he was working from the office or Timbuktu didn’t make much difference. The code was either ready or it wasn’t.

And it was ready. And it worked just fine. Who cares where it was developed?

I personally know back in my code writing days I worked more effectively from home -- sometimes. Yet there were other times I worked better in the office. And there were some circumstances that required some not-so-obvious places for software development.

In my most humble opinion, here are the ten best places to write code:

1) Office Cubes:

Whether it is in cubes or open bullpens, sometimes it’s best to be in direct, constant contact with your fellow developers. This is great for working on tightly integrated modules that require constant interaction. It’s just easier to yell over the cube walls and call for impromptu meetings.

The downside is that it can be annoying to have another developer constantly asking questions or just making conversation when you are trying to concentrate. And these days it isn’t always easy to verbally communicate when almost everyone is jacked into an iPod or Pandora on the web.

2) Office (with door):

You have the benefit of being physically close to the team with the added bonus of being able to close your door. Let’s face it, though, in today’s age of reducing costs not many developers share an office, let alone their own.

If you are lucky enough to have this option, it can be nice because you can control the environment. Dim the lights, plug in your headphones and enter your own world of object orientation. A major benefit of most office environments is that the setup is more ergonomically suited for keyboard typing with a decent desk/chair combination.

3) The Great Outdoors:

Just the sound of “I’m working by the pool today” has a nice ring to it. Whether you’re coding by the pool, the beach, the park or on your patio, there is something awfully appealing to working outside.

Is this a fantasy or can it actually work? Well, it can’t hurt to try! If you have a long lasting battery and an anti-glare screen, then working in the sun can have a relaxing effect, resulting in more productivity. Or it could result in a nice long nap and sunburn. Oh, and don’t forget to check the weather so it doesn’t rain on your parade.

4) Coffee shop:

Whether it is Starbucks or a local hole in the wall, there is something about coffee and coding that go together.

Someone should open a chain called “Coffee and Coding.” (Actually found a site dedicated to Coffee and Code events!) Maybe it’s the aroma of freshly ground beans that inspire innovative JavaBeans.

5) Restaurant:

This is really different than a coffee shop. I’m referring to eating food and coding.

This can be really difficult if you’re eating something sticky or messy, like Buffalo wings, in which case you will click-stick-wipe over and over. Better to eat a salad – something where the fingers don’t touch the food.

So why code and eat? If you skip meals to make an impending deadline, you risk impaired judgment due to lightheadedness. Therefore, if you can get out of the office for a meal it allows you to clear your head and provide sustenance for cranking out coherent code.

6) Couch:

When I think of “couch coding” the visual always includes a TV on. The TV provides nice background noise that many developers need to concentrate.

And I believe developers are innately wired to multitask. Having the latest episode of The Simpsons on keeps them plugged into the latest pop culture. Or they may prefer the National Geographic channel to learn about the history of the universe. I just don’t see most developers sitting on a couch in a dark, silent room. If you know of any, perhaps they should be on some sort of watch list.

7) Bed:

This is really different from the couch. Sure you might have the TV on, but that’s likely intended to keep you from falling asleep. (I personally find TV puts me to sleep as I get older.)

Perhaps the serenity of being next to your significant other results in perfect code. If any friskiness starts up, then maybe it’s time to go back out to the couch.

8) Public transportation:

For developers with long commutes on a bus, train or subway writing code on your laptop isn’t so much a choice as it is a necessity. This is especially true if your boss won’t let you work from home and you are under a deadline.

You can either work at the office all night or go home and see your family, sleep (or code – see #7) in your own bed, while taking advantage of the commute time to write code.

9) Airplane:

I have written some of my best code on an airplane. It works because you know there are X number of hours of uninterrupted coding.

It is especially effective when you are force focused because you are trying to get some assignment completed before you arrive at your destination. However, this may be one of the worst ergonomic places to code because the cramped space often results in sore shoulders or a stiff neck.

Your Internal Happy Place?

What about number ten? I’ll be honest, I ran out of places. This is where having a good editor helps. He suggested that the EXTERNAL place doesn’t matter as much as the INTERNAL place. At first I thought, that’s just weird. But then I realized he was absolutely right.

It’s not as much “where you are” as it is “what is your frame of mind” when you write code. It may be you usually do your best work with headphones on at any coffee shop. But some days you may write your best code by the pool because you need to relax and clear your head.

But the fact is, it isn’t just about the right location or type of coding assignment. It’s also about your mood, attitude, and your inner confidence that helps you find coding nirvana. Maybe it's about getting enough sleep, about being around family and friends or perhaps it's about your inner belief in quality for its own sake, regardless of physical place.

Do you have a better number ten location to write code? Where is your coding happy place?

ALSO SEE: My Three Worst Experiences in Software Development

AND: Are Cocky Developers Worth It?

Eric Spiegel is CEO and co-founder of XTS, which provides software for planning, managing and auditing Citrix and other virtualization platforms.

Mobile Site | Full Site
Copyright 2017 © QuinStreet Inc. All Rights Reserved