DEV Community

Cover image for Do you listen to music while coding?

Do you listen to music while coding?

Patrik Kiss on December 08, 2019

When you are coding, be that St home or work, do you listen to music? If you do, does it change your productivity in any way? If you don't, why? ...
Collapse
 
raulismasiukas profile image
Raulis Masiukas

I think it really depends on the mood and the task.
If I know what I'm doing and it's just the mechanical side of things (implementing the pre-planned logic) then I'll listen to my usual playlist(s).
For planning, I either don't listen to any music or put on some ambient chill or classical playlists.
If it's Monday morning and I need a little boost, I'll pop on some Flatbush Zombies or J. Cole to hype myself up walking down the mean streets of Javascript.

Collapse
 
dyland profile image
Dylan Davenport

Flatbush Zombies!!! Same here 😁 especially on Fridays when it’s time to celebrate the weekend.

Collapse
 
raulismasiukas profile image
Raulis Masiukas

Ayy, my man!

Collapse
 
mangy007 profile image
Kumar Mangalam

Same here. I prefer listening to music when I have created the logic or when I get bored of thinking for a long time for creating a logic.

Collapse
 
waylonwalker profile image
Waylon Walker

I almost always have headphones on to block out noise, though sometimes I get in a groove and completely forget to start the music.

Podcasts are great to pass mundane tasks quickly.

Music is good to block out external noise.

Silence is for ultimate focus with no distractions.

Collapse
 
gexos profile image
George X.

I typically do, but I know it isn't for everyone. If I really need to focus on a particular problem, I'll probably pause the music so I can think clearly, but for the majority of the time I enjoy having something in the background. My prefernce is electronic music or Smooth Jazz.

Collapse
 
katnel20 profile image
Katie Nelson

Smooth Jazz is great! Especially when it’s just music with no lyrics. Does a good job of blocking out any background disturbances.
When I’m stuck trying to get something new working, I switch to something more progressive to clear my head.

Collapse
 
botanical profile image
Jennifer Tran

I love listening to instrumental and upbeat music when I code! Mostly because the music will drown out surrounding sounds (since I don't have noise-cancelling headphones) and it just puts me in good spirits which boosts my productivity. Although, similar to you, I do stop listening to music when I am really required to focus on my code, like if there is a bug.

Collapse
 
dylanjha profile image
Dylan Jhaveri

When I need to focus I usually listen to classical music. I end up tuning it out and not paying much attention to it but it gets me in a good headspace to flow. If I'm doing planning, prioritizing or other kinds of busywork then I listen to all kinds of music.

Collapse
 
franky47 profile image
François Best

My favourite style for coding without thinking [1] is progressive rock/metal.

My favourite bands of the moment are Haken, Devin Townsend, Liquid Tension Experiment, Steven Wilson (et al). Also aptly named is French band The Algorithm. Want more extreme ? Try Pryapisme. More Jazz/fusion-y ? Nova Collective.

[1] as opposed to thinking without coding, which usually comes first and requires complete silence, paper and pen.

Collapse
 
fossheim profile image
Sarah

Depends a bit on the environment and task. In a noisy office space I prefer listening to music no matter what, because it's better than hearing talking (or these days in our office, drilling and hammering) in the background. But when I'm alone in a quiet space I usually prefer enjoying the quietness.

And when I get stuck on a difficult problem I like switching between music and no music because change in surroundings helps a lot.

Collapse
 
mr_zekel profile image
Andreas Szekely

Absolutely do!
Helps me eliminate outside distractions and focus on work/study

Collapse
 
sonyarianto profile image
Sony AK

For me, it depends. At home usually I am listening to music via headset and it will improve focus and productivity. At the office, I am not listening to any music but still can focus :)

Collapse
 
sroehrl profile image
neoan

I participated in a brainwave study a few years ago and without boring you with too much detail: finding the right kind of music highly improves your output & concentration.

Collapse
 
sqlrob profile image
Robert Myers

Sometimes.

If I'm working remote, only for some tasks (doing some crypto stuff right now, have my "Thumbs Up" playlist going)

If I'm working in the office, usually.