DEV Community

loading...

Music or No music while coding?

madza profile image Madza ・1 min read

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?

Discussion (47)

pic
Editor guide
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
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
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
munch141 profile image
Ricardo Münch

Music!!! And almost always the same playlist, it seems to me that my brain made an association between some playlists and working, so when I sit down and put certain music on I kinda go into production mode haha

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

Depends on the mood.

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
rolypolie profile image
Sky

yeah, it depends on the situation for me.

If I'm having to learn something or focus on a deadline then no music or super low-fi beats.

If it's maintenance updates or similar then I might go with something a little more upbeat to help me get through it lol.

Collapse
jakesweb profile image
Jacob Colborn

I always use music because it helps me focus so much better. The genre of music changes with the mood, though. Most of the time it is some sort of electronic music but will progress to rock or hip-hop if I am just feeling it.

Collapse
stealthmusic profile image
Jan Wedel

I only listen to music (without lyrics, Jazz mostly) when there is some other noise that distracts me while coding (e.g. some drilling, colleague having loud conversation etc).

Otherwise, I prefer silence. As a musician, I tend to think about the music I listen to and my thoughts drift away from the code. And, I hate headphone. After a day wearing headphones, my ears and my head aches...

Collapse
justsharkie profile image
/*Sharkie*/

I need music to focus at all, sitting in silence is sooo much more distracting. And this applies to everything I do, if there's not music/noise/something in the background I get antsy and distracted from whatever I'm doing.

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
rapidnerd profile image
George Marr

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
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
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
spiritbro1 profile image
spiritbro1

no music i rather be silent make me focused

Collapse
n1c00o profile image
Nico

For me, music is very important !😁 From Juice WRLD to Approaching Nirvana
Music is very important because it is my inspiration source

Collapse
madza profile image
Madza Author

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

Collapse
itsjzt profile image
Saurabh Sharma

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

I rarely listen while refactoring

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
rcmedeiros profile image
Rafael Medeiros

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
mtsafe profile image
Albir Tarsha

I could see using music to set a mood if I were creating something artful. However during problem solving or any deep thinking task I believe that music interferes with maximum productivity.

I quit music during studying in college. I was taking a test and I noticed that while I was testing I would hear the music that I studied with. My conclusion was that my brain was taking in all of the sensory information and storing it together even though there was no logical reason to associate my studies with what I was listening to.

The sense of hearing wires deep into the brain. So I don't think you can truly block out sounds even though it may seem like you can. The information in the music is not directly streaming to /dev/null . You are processing it. Otherwise there would be no difference in listening to music while coding, and in that case you would not feel a desire to listen to music while coding. I am quite certain that coding in silence is most effective and efficient.

Collapse
gspteck profile image
GSPTeck

I listen to a playlist in loop with al kinds of genres. I see why people say it should be avoided: I catch myself singing along sometimes lol. But I preferr music with lyrics over no lyrics. I would prefer to not listen at all at that point.

Collapse
crippler93 profile image
Luis Chavez

Music don't work to me. Because I needed to change a song that I don't like from a playlist. Maybe if I put more effort creating a perfect playlist with all my favorite songs It can work.

Collapse
beezfedia profile image
Beez Fedia

It depends what I'm working on. If I need to focus hard, music helps. Music without words though someone like Nils Frahm or Hans Zimmer. Cinematic music seems to make me focus for longer.

Collapse
bernardbaker profile image
Bernard Baker

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
geekpulp profile image
Glen Young

Generally not music, but I do play thunder and lightening sounds. A bit of background noise is helpful.

Collapse
phx255 profile image
Jaime

Music help me to focus and make "Relaxing code"=Coding slower but Better. No music...fast fingers :S

Collapse
seanolad profile image
Sean

I'm a music guy, it helps me unwind so I can focus on the task at hand instead of other things I'm thinking about, or other people.

Collapse
mukunda profile image
Mukunda Johnson

Music is my fidget cube.

Collapse
negrupaul7 profile image
Collapse
madza profile image
Madza Author

I'm listening to it when I'm doing my workouts :)

Collapse
baselakasha profile image
Basel Akasha

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.

Collapse
thatnaturall profile image
ThatNaturall

Really depends on the type of music

Collapse
daradedesign profile image
Dallas DeGrendel

I like Trip Hop for coding. Lyrics pull my focus.

Collapse
memahesh profile image
Medam Mahesh

Changes from time to time. If I am doing a boring task that I hate to do, I just play a Jazz playlist. When the work is important and hard, I don't take any chances

Collapse
thomasbnt profile image
Thomas Bnt

Always music !

Collapse
jonrandy profile image
Jon Randy

Depends on the job in hand. Generally prefer music, but if intense brainpower is required then switch it off

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
valorm profile image
Valorm🤪

Music because it helps me focus so much better. Any genre of music puts me in the mood. Most of the time hip-hop and pop.

Collapse
majeo69 profile image
Alex

Music 🎶

Collapse
adcadesigns profile image
ADCAdesigns

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

Collapse
jiiieeef profile image
Jean-Franck

Music helps me to focus while I'm coding. I like to listen metal, synthwave, lofi or video game OSTs. But I don't listen podcasts while I'm coding since it distract me to follow it...

Collapse
master_elodin profile image
Alexander Oguejiofor

Definitely music. New age or rap.

Collapse
straleb profile image
Strahinja Babić

I mostly go with Music, even if it gets stressy when the code doesn't work music takes my mind off it, makes me calm and to finish the job :)