DEV Community

Sathish
Sathish

Posted on • Edited on

Why do some developers listen to music while they code?

I want my environment to be silent while programming. Listening to music actually deviate from what I'm doing. I wonder how it helps some. :-)

Top comments (53)

Collapse
 
katzy687 profile image
Natti Katz

If I'm learning something new, silence. If I'm doing something that I already know how to do, I listen to music to kind of get in a flow.

Collapse
 
ahoseinian profile image
Amir Hoseinian

I do it because the headset keeps my ears warm in our cold office!

Collapse
 
chrisvasqm profile image
Christian Vasquez

This. So much this!

Collapse
 
grhegde09 profile image
Gajanan

I listen to music with no vocals. That does not need me to focus on the music and acts like background white noise. This helps me focus on the job at hand. I can avoid hearing people talking and getting distracted. It is a noisy kind of silence!

Collapse
 
a_reiterer profile image
Andreas Reiterer

Yep, I second this.
I also listen to music that fits my current mood (either I need some motivating, pushing fast paced music or slow, calm, maybe classical) but always without vocals.

Some time ago I realized it also works if I just turn on some white noise (there is a Rainstorm Playlist on Spotify 😂) to avoid being distracted by other peoples conversations or other noise.

Collapse
 
chrisvasqm profile image
Christian Vasquez

Would you mind sharing your playlist? I've been thinking about doing the same thing.

Collapse
 
grhegde09 profile image
Collapse
 
soupwaylee profile image
Stefan Su (he/him) • Edited

I though I'd share mine as well. It's a collection of Chillhop pieces I like. I always listen to those when I'm programming / studying. It helps me to block out the surroundings.

open.spotify.com/user/1132816104/p...

Collapse
 
ripsup profile image
Richard Orelup

Not sure if this is the one that he is referring to but it is one that I follow.

open.spotify.com/user/spotify/play...

Collapse
 
raventhedev profile image
Chris Raven

As a "developer" (Read: Junior person who knows barely anything at this point), and an individual with Autism, music my way of drowning out unexpected noises. When there are people talking, or noises occurring around me , I will inadvertently attempt to isolate and figure out what those noises are. With music (Mainly stuff that I know the lyrics to) I don't focus on that, since I know what the noise is. It leaves me to concentrate on my problem solving.

Collapse
 
bartude profile image
Bartude

In my situation, I work in a kind of noisy environment, so I hear music to abstract myself from all the talking and laughing and whatnot. I mostly hear music I already know, and that's more rock, pop, hip-hop etc... to help me get in the mood. If I'm focused working, normally after one or two songs I get so into "the zone", that when I'm out, the playlist is over :p

Collapse
 
radorado profile image
Radoslav Georgiev

IMO, music helps you get into "flow".

From my personal observation when working & listening to music, I see two patterns:

1) There are times when coding with music makes you super-productive (often when you know what you are solving and need to actually code it).

2) There are times where you need silence to concentrate & solve / understand the problem at hand. If all your mental capacity goes towards that problem, then - music can be distracting.

But in the end - it all depends on the person & the context ;)

Collapse
 
franky47 profile image
François Best

A list of things I listen to while coding:

Artists:

  • John Hopkins
  • Steven Wilson

Albums:

And many more.. anything with a good groove for coding fast without thinking, and no music at all for planning ahead without coding (whiteboard, note book).

Collapse
 
scottshipp profile image
scottshipp

Ulrich Schnauss is great!

Collapse
 
v_vindemiatrix profile image
Vega Vindemiatrix

I listen alternately to trance (Above & Beyond etc.), soundtracks (movie and game) and classical. While trance occasionally has vocals they are usually really short and simple so they are not much of a distraction. Overall electronica fits my silicon based lifestyle the best. Actually music not only does it help me focus, it keeps me from bothering the people around me. I tend to talk to myself a bit and I like interacting with my co-workers (to their detriment from time to time). With tunes that are not very singable I tend to not sing (not singing is my gift to mankind). As far as classical goes nothing for me beats Debussy.

Collapse
 
shkabo profile image
b

I'm a person that enjoys good rhythm and doesn't notice lyrics in most occasions. When I start coding I need to have music with me (which depends on my mood but it's mostly some electronic). That music makes me to isolate surrounding noises, and makes me focus on the work that I'm doing. After some time I'm so into coding that I even stop noticing the music. It happened to me a couple of times that I ended from electronic music to some metal or so music without me even noticing that until I stopped working. :)

Collapse
 
osblaineora profile image
Blaine Carter

Sometimes when I'm stuck, a little bit of distraction will break the ideas loose. Having the right music (depends on my mood) can help keep my thoughts moving forward.