DEV Community

Madza
Madza Subscriber

Posted on

Music or No music while coding?

As I've noticed, some devs see music as a distraction and absolutely hate it, while some won't write a single line of code without headphones on ears.

Which type of person are you and could you please elaborate a bit on your reasons behind it?

Top comments (45)

Collapse
 
thehanna profile image
Brian Hanna

It depends on the cognitive load of the task at hand. If it's low, I'll generally listen to a podcast or watch a video on a second screen. If it's something that needs my undivided attention, I'll put on music in my noise cancelling headphones. Usually it's metal without lyrics, or with growls where I can't pick out words. It helps me drown out distractions

Collapse
 
chunkybyte profile image
Ekansh Kothiyal

Definently music FTW!
I generally have one of the chill lofi or classic jazz playlists on spotify while I work. I personally can't work or focus when the music has vocals/lyrics in it.

But if I have to really get into "the zone" while coding which requires long periods of undivided attention, I go for the binaural beats. You have four different types depending on the result you are looking for like for high intense concentration or different frequncies when you want to relax or even for deep sleep.

Collapse
 
rapidnerd profile image
George

I've gone through a few things while working, music for me works sometimes however whenever I get to a song that I'm "not in the mood" for I find myself taking time out to skip it or change playlist. I've tried netflix/prime video for it as well watching something that I don't really have to pay attention to, still found myself paying attention to it.

Most recently I've been listening to rain ASMR, not really sure what it is just find it really relaxing with no distractions and helps me work more efficiently than music.

Collapse
 
carlosiscoding profile image
Carlos Arredondo

Music. Mostly because it drowns out all the noise around me and allows me to focus better. I do get distracted by conversations or people moving around me. A good pair of noise cancelling headphones and some music with no lyrics and I can work for hours.

Collapse
 
spiritupbro profile image
spiritupbro

no music i rather be silent make me focused

Collapse
 
stalha97 profile image
stalha97

No music for me. I start coding with background music but after few minutes I find it very distracting and have to turn it off.

Collapse
 
itsjzt profile image
Saurabh Sharma

No music, I cant focus on two things at once.

I rarely listen while refactoring

Collapse
 
jamescole2015 profile image
james-cole2015

No music for me.. I’m usually listening to space white noise on YouTube - helps me focus on what I’m doing and tune out other noise around me

Collapse
 
rcmedeiros profile image
Rafael Medeiros • Edited

Before noise canceling headphones, with music which I knew by heart, order by album and year. Those ones can't steal much processing power like a random playlist would as long as they keep predictable in every channel.

Then, noise canceling headphones, anti-social t-shirt and a reputation for being rude when interrupted FTW;

But now with quarantine where I have a whole room to myself, a shut door will suffice. Never want to leave home office again. \o/

Collapse
 
themadmike profile image
Michał Gibas

Generally when I need to really focus on some task that requires a lot of attention, I work with quiet lofi, nature sounds, jazz or classical music. Sometimes I code without any music at all. Often when I start my personal projects and I need to create/generate the boilerplate code and clean it up, I listen to rock or techno, because it doesn't require so much of my attention. It all really depends on my mood and the complexity of a given task.