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.
Top comments (150)
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.
That's exactly what I do too...
Here's the algorithm:
This exactly, if I need to focus or really think of something I pause the music.
yep exactly
That's what I do, when I am fixing bugs, refactoring or adding a simple feature.
It's a lot of fun honestly :D
Without music I cannot code!!
Me neither 😂❤️
Right now I am hearing some Tamil songs and scavenging through StackoverFlow haha!!!
And I am listening to some up-beat K-pop❤️
PS - I am not coding right now🤣
Me, the same 👏. I even listen to rock/metal 🙏🏻
Oh yeah, heavy metal pumps me up... I just love it listening to it in the libraries & coffee shops 😍🎸
It's so nice to hear there are developers like me? Thanks for sharing 🙏🏻
Thanks for being a part of the community ✨⚡
Music most times for me. I usually go for the slow (not too slow), low-pitched ones. I feel they aid concentration for me, and listening with an earpiece or a headset helps block external noise and distractions.
Hey, on behalf of the dev.to community I'd like to welcome you to our little slice of haven!
That's the perfect recipe for some real focus music!
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.
I completely feel you. Even I usually amp up some lovely melodies when working on something creative such as designing or UI/UX...
Music pretty much all the time for me. It helps me focus. I pretty much listen to instrumental music though. If there’s lyrics, then I get distracted. If someone is talking around me while I code, I put headphones on and I’m good to go.
That's true... vocals can really be distracting!
Music helps me focus most of the time, even with lyrics many days. It just depends on the style and instrumentation I need for my current mood. I listen to everything from classical to jazz to metalcore to contemporary to melodic rap to cinematic scores.
Sometimes all in the same day.
Yeah music helps a lot to calm our mind and focus on coding 👨💻
I find silence more distracting than music most of the time
I completely feel you! Just some beats and we are in full pace!🔥
For me personally, it differs. I always start with a mix (Lo-Fi / Tech House / Techno) and from there, a couple of things could happen:
This is a really interesting approach! Once the brain is occupied in coding it starts to completely ignore the music. I would love to try this someday...
I always listen music while coding, the only difference is if is only instrumental or normal music. If I need to focus or deeply understand something I listen to instrumentals(lofi hip-hop/jazz, metal, etc), else, any type of song that I like to listen to
Yes, Lofi songs are great when we need to focus on something important.
I don't think your conclusion is scientific in any way. It is subjective and so doesn't matter. I code to music with no lyrics, so Bethoveen, orchestral type music or anything that inspires on the day. The most important thing is focus. We all know how and what makes us focus.
Exactly! Focus is more important but everyone has different ways and approaches to find focus. And all of them are creative and amazing!🤩
Like a lot of people, the type of music depend of what I'm doing, if I need to focus I'll listen electro, rock, if I want to chill Lo-Fi.
But I noticed I'm really focused when I listen podcast (only when i'm not stuck on a bugs, just create nice features), (I'm french speaker so my brain try to understand english song...), when I listen podcast my brain understand what he says so it's better (and sometimes I listen in english to improve myself).
And when I'm really stuck on a bug, I switch off music 😂😂😂
Oh, that's lovely! 😂 Even I love electronic music a lot but I usually avoid it while coding. Love to listen to it rest of the times.
Plus even I am not a native English speaker so it's actually tough to focus on coding with music🤣
For all the people here who listen to music while coding, might I suggest DomeCode's music module? We provide high-quality lo-fi music that you can put in the background and forget about. And while you're there, you might also wanna check out the rest of what DomeCode has to offer, such as coding tutorials, notes and todo apps, and much more. Go to domecode.com to get started!
Sounds amazing Yash! Will definitely check it out!
listening to music is really helping me to focus BUT the type of music is so important, you can find my likes on SoundCloud
Such a awesome collection 😍 Will definitely check it out... I wonder what playlists you listen to on Spotify 😃😇
i mostly stick with soundcloud but folks at freeCodeCamp code radio also stream amazing beats that is just my type 😍
Oh yeah, I listen to them very often... 😍
Hey! i found this today and it's AWESOME!! 💪 it takes me to the journey of undiscovered!! 🙄😁
Thanks for sharing Elder! Lemme bookmark it ASAP 😍
Of course it's diferent for everyone, but for me, music turns coding more fun, however sometimes when I need a higher level concentration, when a need to do the hole flux of the code I take of my headphone for a little while...
Yes of course! Coding is fun with music!🥰
I go for relaxing ones
Lovely,🤩 Can you share exactly which ones you generally listen to?
music.apple.com/ke/playlist/entitl...
There it is
Entire playlist 😍 Thanks for sharing Chris!