DEV Community

Madza
Madza

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?

Oldest comments (45)

Collapse
 
tothzalan profile image
Zalán

For me this heavily depends on the music. For example I can listen to jazz without a problem but I cannot even write more than two lines while listening to rock or metal.

Collapse
 
cubiclesocial profile image
cubiclesocial

No music for me. I can generally focus just fine even when unusual stuff is happening as long as it isn't music. The quieter it is, the better. I will occasionally throw on headphones not to play music but to drown out some environmental chatter if I really need to focus.

Probably depends entirely on the person and whether or not they grew up listening to music while studying for school.

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
madza profile image
Madza • Edited

Hahah, actually been listening to Go this evening and also a lot of Righteous couple weeks ago xdd

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
 
hamzaanis profile image
Hamza Anis

Depends on the mood.

Collapse
 
spiritupbro profile image
spiritupbro

no music i rather be silent make me focused

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
 
itsjzt profile image
Saurabh Sharma

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

I rarely listen while refactoring

Collapse
 
kelvin9877 profile image
Kelvin Liang

I like no lyric music to stay focus when coding. But silence does help when watching tutorials or books.

Collapse
 
adcadesigns profile image
ADCAdesigns • Edited

Depending on the mood. But most of the time no music. If I go with music mostly jazz instrumental.

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.

Collapse
 
bernardbaker profile image
Bernard Baker • Edited

Some sort of background noise is needed. Music of some sort is usually playing while I work.

I'm a people person, love catching up between features.

Collapse
 
penandpapers profile image
PenAndPapers

Depends on the mood. I do listen into country, rock and blues music especially when I cant get my code to work.

Collapse
 
thomasbnt profile image
Thomas Bnt ☕

Always music !

Collapse
 
baselakasha profile image
Basel Akasha • Edited

I listen to music when I am doing regular tasks. However, some tasks require thinking and contrasting; music can be a distraction in this case.