Sam Howard Sam is a developer at IDRsolutions who specialises in font rendering and conversion. He's also enjoyed working with SVG, Java 3D, Java FX and Swing.

Music and Coding Part 2: What to listen to?

2 min read

Last time we looked at some reasons why music and coding might be a good mix for you (if you’ll excuse the pun). This time we’re going to look at what kinds of music might be best to listen to.

First up, a disclaimer: everybody is different, has a unique taste in music, and different emotional responses to music. There is no genre or track list which is universally the best for programming to – there’s only what works for you. This is also why I’m focusing on music for use in general situations, not getting your head in the right place to be productive.

All of that said, there are definitely some interesting trends and ideas to discuss.



Almost everyone I’ve spoken to finds words, whether in the form of podcasts or songs with lyrics, can completely knock them off focus when coding. I find being particularly familiar with a track can stop this from being a problem. A few of us here at IDR also listen to tracks with lyrics in languages we don’t understand.

This opens the field up to include Anime soundtracks, latin jazz/hip hop, or even music with lyrics in a language without meaning like much of Sigur Rós’s catalogue. (The rest being mostly in Icelandic will probably be equally unproblematic for most readers!)

There’s plenty of instrumental music out there too, though. Classical, electronic, jazz and soundtracks are all areas where a lot of great instrumental music can be found. Speaking of which –



Soundtracks offer something unique in the world of music to programmers.

They are usually written specifically to avoid distracting viewers from what’s happening on the screen, which means it’s often good not distracting you from your code, too. (Less so during emotionally or physically intense scenes since the music often has less chance of overpowering the action.) You’ll probably notice that it’s fairly rare to hear vocals on soundtracks specifically to avoid distracting the audience.

The main benefit of soundtracks is that they all tend to have non-intrusive tracks while also offering a range of genres – from Thomas Newman’s quirky minimalist score for American Beauty to Daft Punk’s operatic electronic score to Tron Legacy. Don’t forget games and TV also have some great soundtracks!


A number of people I talked to mentioned they find it easier to work with music they already know well. Knowing roughly what’s ahead means you’re much less likely to lose focus. As mentioned last time, if they’re familiar primarily from working they could even help you get into the right frame of mind faster.

This is no excuse not to experiment, though – it probably just means you should try things out during easier work. It also means some things which won’t work for most people will work for you.

These guys have developed a whole aesthetic for what they think works best for programmers to listen to, and created a whole bunch of playlists to try out. Here’s the elements they think help:

Field recordings
Vagueness (Hypnagogia)
Textures without rhythm
Minor complex chords
Early music (Baroque, lute, harpsichord)
Very few drums or vocals
Synth arpeggios
Walls of reverb

This set of things does mostly lead them to extensively use electronic music, which I’m sure isn’t for everyone (although you might be surprised…). Their manifesto – though, as it warns, a little pretentious – is definitely well worth a read.



Something MusicForProgramming don’t mention in their aesthetic but do use heavily is repetition. I think this can probably have a similar effect to familiarity of avoiding sudden changes from breaking your flow. In case electronic music isn’t your thing, this kind of thing can also be found in minimalist music like Steve Reich and even jazz/hip hop like Nujabes.



Like I said in the disclaimer at the start, there is no genre or track list which is universally the best for programming to – there’s only what works for you. The only way to find that out is to experiment. Hopefully we’ve given you a few ideas.

Let us know in the comments what works for you!

Are you a Developer working with PDF files?

Our developers guide contains a large number of technical posts to help you understand the PDF file Format.

Do you need to solve any of these problems?

Display PDF documents in a Web app
Use PDF Forms in a web browser
Convert PDF Documents to an image
Work with PDF Documents in Java
Sam Howard Sam is a developer at IDRsolutions who specialises in font rendering and conversion. He's also enjoyed working with SVG, Java 3D, Java FX and Swing.

6 Replies to “Music and Coding Part 2: What to listen to?”

  1. The only problem with soundtracks I have is that whenever I hear a familiar tune I immediately visualise the movie which will sidetrack my thought process. Other than that I agree 100% with what’s been said here.

    I’m not sponsored in any way but recently I code only to, you can mimic what they are doing really easily with your own playlists etc. after you do some research and collect enough tracks. I preferred to pay few bucks to have it delivered. Services like Spotify etc. usually have such genres also (Spotify has a wide collection of “focus” subgenres).

    Guess it will depend on the person but I personally prefer calmer music, I tried something heavier (electro, trance etc.) but that didn’t let me focus much. The part about the lyrics is kind of obvious if you know how the brain works – it basically will try to do an analysis of what it’s hearing, even if in the background. And that’s the whole point of listening to music while coding – you want to get rid of such distractions 🙂

  2. offers ambient streams that have gotten through many long hours of coding, especially “Suburbs of Goa”, “Space Station Soma”, “Mission Control”, and “Lush”.

Comments are closed.