DEV Community

Cover image for Do you listen to music while coding?
Rishabh Singh ⚡
Rishabh Singh ⚡

Posted on

Do you listen to music while coding?

If you are a music lover then there's no doubt, you listen to music very often while doing many different things. Laundry with Music! Cooking with Music! Workout with Music!

But do you listen to music while coding as well?

Coding requires a lot of focus & if you are constantly distracted by the beats of music then you will certainly end up with a never-ending list of errors or low-quality code. However, this is not true all the times! Some developers say, with music, coding becomes more fun and they can code undistracted with more focus.

Discuss


Do you think that music helps you focus while coding? 🤔🎧

Share your thoughts and opinions in the discussions/comments.

Oldest comments (144)

Collapse
 
cyberhck profile image
Nishchal Gautam

For me, it depends on what kind of work I'm doing, if I'm doing auth or something similar which is so simple that I can do with half mind, I listen to music in background, but they never are loud.

But if it requires focus or you're stuck at a test which just won't pass, I'll pause music to focus till I figure out, or if I'm doing research which needs attention, then I won't listen to music.

But 90% of things come naturally, so music most of the time.

Collapse
 
mindninjax profile image
Rishabh Singh ⚡

That's exactly what I do too...

Here's the algorithm:

if task == 'attention required':
   music = False
else:
   music = True
Enter fullscreen mode Exit fullscreen mode
Collapse
 
rvxlab profile image
RVxLab

This exactly, if I need to focus or really think of something I pause the music.

Collapse
 
webjoyable profile image
webjoyable • Edited
awake && music
Enter fullscreen mode Exit fullscreen mode
Collapse
 
thankgod profile image
Eboreime ThankGod

yep exactly

Collapse
 
applicafroguy profile image
Sivuyile Magutywa

That's what I do, when I am fixing bugs, refactoring or adding a simple feature.

Collapse
 
mindninjax profile image
Rishabh Singh ⚡

It's a lot of fun honestly :D

Collapse
 
sharan profile image
Sharan

Yeah, I will easily get distracted to "someone's speak" around me. So i will listen to music while coding to get focused. But, some bass extended music also will distract me from coding. So, while coding or designing, I mostly prefer jazz or melody kinda stuff.
If it was a boring work, then this won't work.
So I will go with vice versa.

Collapse
 
mindninjax profile image
Rishabh Singh ⚡

I completely feel you. Even I usually amp up some lovely melodies when working on something creative such as designing or UI/UX...

Collapse
 
surajondev profile image
Suraj Vishwakarma

Definitely I love listening to music while doing anykind of work. I think it is good practice to listen music as it boost the efficiency. Also with music we can do more work/coding for long time.

I can't live with music ❤️

Collapse
 
mindninjax profile image
Rishabh Singh ⚡

Seriously once we are used to listening music it feels empty without it! Living without Music is really something most of us can barely imagine ❤️❤️❤️

ILOVEMUSIC

Collapse
 
limusina10 profile image
limusina10

Well in my case I only listen to music with is Instrumental such as Lofi

Collapse
 
mindninjax profile image
Rishabh Singh ⚡

Yeah these are pretty great choices when working on something important 🔥

Collapse
 
gautham495 profile image
Gautham Vijayan

Without music I cannot code!!

Collapse
 
mindninjax profile image
Rishabh Singh ⚡

Me neither 😂❤️

Collapse
 
gautham495 profile image
Gautham Vijayan

Right now I am hearing some Tamil songs and scavenging through StackoverFlow haha!!!

Thread Thread
 
mindninjax profile image
Rishabh Singh ⚡

And I am listening to some up-beat K-pop❤️

PS - I am not coding right now🤣

Collapse
 
nhatnguyentim profile image
Hoang Nhat

Me, the same 👏. I even listen to rock/metal 🙏🏻

Collapse
 
mindninjax profile image
Rishabh Singh ⚡

Oh yeah, heavy metal pumps me up... I just love it listening to it in the libraries & coffee shops 😍🎸

Thread Thread
 
nhatnguyentim profile image
Hoang Nhat • Edited

It's so nice to hear there are developers like me? Thanks for sharing 🙏🏻

Thread Thread
 
mindninjax profile image
Rishabh Singh ⚡

Thanks for being a part of the community ✨⚡

Collapse
 
nazanin_ashrafi profile image
Nazanin Ashrafi

If I play music and do something else at the same time, all my focus will be on the second thing and I literally won't be hearing the music it's like my ears block it 🤣

Collapse
 
mindninjax profile image
Rishabh Singh ⚡

That's amazing 🤣

Collapse
 
mirajussalehin profile image
sayem

Ambient sound helps me to focus. Even the piano works really great for me. Lyrics can be distracting for me.

Collapse
 
mindninjax profile image
Rishabh Singh ⚡

Lyrics are indeed distracting especially if you're familiar with the song...

Collapse
 
masterbrian99 profile image
pasindu pramodya

Sometimes yeah.really depends on work.

Collapse
 
mindninjax profile image
Rishabh Singh ⚡

Yes! Most of the time I prefer listening to music while working.

Collapse
 
jonrandy profile image
Jon Randy 🎖️

I find silence more distracting than music most of the time

Collapse
 
mindninjax profile image
Rishabh Singh ⚡

I completely feel you! Just some beats and we are in full pace!🔥

Collapse
 
chiragpurohit71085 profile image
chiragpurohit71085

I generally listen white noise ( yiu may not consider this as a music 🙂). It keeps me focused.

Collapse
 
mindninjax profile image
Rishabh Singh ⚡

White noise is honestly very effective... This is what I go for when my ears can't hear anymore music.😂