Minimizing Distractions For Programming

For anyone who’s been programming long enough, I’d venture to say that some of the most productive times of the day come when you’re in the zone.

You know what I mean, too: When you’re minimizing distractions, when you’re listening to whatever music helps you get into the groove, and whatever you’re working on feels almost effortless (not that it doesn’t come with it’s share frustration, but you’re just there and totally focused on the task at hand).

We know this feel.
We know this feel.

At the same time, I think that it’s incredible that we get as much work done as we do. Granted, we all have different ways in which we work, but at any given time I could have the following applications open:

  • Email
  • Twitter
  • Slack (for chat)
  • Google Hangouts
  • Feedly
  • Downcast
  • Notifications from my phone (or tablet)
  • …and so on

And that’s in addition to my IDE. I’m sure the same can be said about you and your environment, too. But here’s the thing: Each of the above contributes to making sure we’re aware as many demands that we have being placed on us, but can you argue that they all make us more productive?

How I’m Minimizing Distractions

It’s impossible to write a prescriptive post about this because we all have different ways of working. That is to say, I can’t tell you what to do because I don’t know how you work best.

I can, however, tell you what I normally do when I need to focus on working on a project, working through my inbox, working through a blog post, or something similar.

So here’s the deal: Given that all of the above are applications that I usually have open at any given time, I think it’s fair to say that each of those have the ability to demand my attention. Anytime I start to focus on something, another thing popups that begs for my attention.

Email Answered, Email Closed
Email Answered, Email Closed

It’s easy to fix that, though, right? Just close the application. But this yields an entire differently problem:

What if I miss out something?

So we’ve created this vicious cycle for ourselves where we know the things that distract us the most, but we’re so afraid on missing out on something that we leave everything (or most everything) open so that we don’t miss out on anything while still working on something.

You’ve Got To Find Your Zone

Eventually, something has to give – either you get too busy, you get too tired of “trying to catch up,” or you realize that not everything has to be managed this minute.

So how do you find the zone that best suits your mood, minimizes distractions, and gets you into the zone? Perhaps it varies from person to person, but I think we all intrinsically know what our ideal work environment should be. Speaking for myself:

  • IDE (and related tools) are open
  • Music is playing (usually soundtracks or ambient radio)
  • Nothing else is open (no email, no Twitter, no RSS, no Slack, no Messages, no notifications)
  • My phone is flipped face down on my desk so I only get vibrations (because I hate ringtones)  if someone calls me

Basically, it’s the bare minimum that I need to get into doing whatever I’m doing. Case in point: Right now, drafting up several blog posts is my primary focus. As such, WordPress and music are the only things that have my attention.

And just as it with writing code, so it is with writing words.

It’ll Be There Later

Lastly, the best thing about all of the above distractions is that as fun and useful as they are, they will always be there later. There’s nothing that’s fleeting in those mediums because the data is requested on demand, right?

But we do have a time limit – at least usually – on the work that qw need to get done and that’s something that requires the most focus.

So although all of the other things are as much fun as they are, and as much as it pains us to feel like we’re missing out on something, it really doesn’t matter if we have them turned off because we can always get back to that stuff later. Work, on the other hand, is not as easy.

5 Replies to “Minimizing Distractions For Programming”

  1. Totally agree – turn it all off, it’ll be there waiting for you later!

    I try to have one or two Spotify playlists available to help me while I concentrate. If you like ‘thoughtful’ piano then this is a good one:


    Do you have any favorites?

  2. What works for me best – Sublime Text as IDE and browser, obviously. Music is playing from my phone, usually one of favorite iTunes radio stations or a ‘working’ playlist. Sometimes headphones, sometimes speakers. Skype and Viber in system tray, silent mode (no notifications). Phone in ‘Do not disturb’ mode. No Facebook, Twitter etc while working on a single task or bunch of related ones. Between that task sprints I have short breaks – that’s the time for checking all that muted apps. But, of course, often that small one-task sprint becomes a ‘do-it-all-right-now’ thing. Just because I’m getting into the mood and deep context.

  3. I actually leave ring tones on, simply because I give my wife a special one. If it’s not her ring then I can leave it for later.

    If it is her then it’s important, because we usually text.

    I suppose that also requires she knows that if she needs an answer right away, call don’t text.

  4. Ironically this my third attempt to read this blog post .. I really do need to work on minimizing my distractions.

    Finding ‘the zone’ is important – if I’m not in in when working, then the task in hand becomes a chore as I get frustrated that I can’t give it the time it deserves. Turning off all social media is a must .. my ‘IG likes’ aren’t going to disappear if I don’t check them every 20 minutes.

    Music? Try this one spotify:user:snackajacques:playlist:30vH6Gc0799ka2PMZfWqTn

    1. Ironically this my third attempt to read this blog post .. I really do need to work on minimizing my distractions.

      #LOL. I dunno if that’s a joke or not, but I dig it :).

      my ‘IG likes’ aren’t going to disappear if I don’t check them every 20 minutes.

      Haha, but the pictures – they’re so amazing and unique! I’m just being facetious :). I’ve had to turn certain app notifications off – even email – sometimes because I just dislike the “pull” it creates on my attention.

      I’d rather pull information from it, you know?

      Music? Try this one spotify:user:snackajacques:playlist:30vH6Gc0799ka2PMZfWqTn

      And thanks for the playlist. I’m going to check it out!

Leave a Reply