Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In my personal experience, listening to music is fine (and helps keep me on task while waiting for builds and tests and such) when I'm working on well-understood bits. But if there's something novel or complicated, I have to turn it off or else I just can't get into the right frame of mind.


I will build on it. Even type of music may make a difference in your mental state. Soothing background piano music may actually help your focus, while lyric heavy cadence of note distractions will do anything but since it is virtually designed for a distraction.


Anything with Lyrics wrecks my concentration. Somehow my mind just can't stop tracking speech. Instrumental is OK, but silence is too.

I know lots of people though who must have music on, or they simply cannot concentrate. For them, it might be that the music gives the mind something to hold on to, kind of a rail to help stay on track, and in the absence of that, their mind would wander farther afield.


> might be that the music gives the mind something to hold on to

The way it feels to me is it gives me a consistent background to work. For example, once I have decided on a particular way to solve a problem and its time to code - I put a long DnB track.

Another way to describe it is that it gives my brain's CPU a consistent clock, so to speak xD


YES. I can listen to things w/lyrics while doing CAD work; with any task requiring language, text, etc. it is too distracting, although some calm instrumentals are tolerable.

When I really get focused on a bit of work, whatever music is playing literally disappears - if you came to me 3min later and offered me $millions to tell you what song just played, I'd get nothing.

Cats are even more amazing - I can't find it right now, but I remember in reading studies in some of my college neuroscience classes where electrodes were put on cats to track their audio system with a clock/metronome sound in the background. You can trace the signal processing up through various nodes of the system at successively higher levels. When a mouse was let into the area, the metronome click trace disappeared from the data of almost every level of processing - it was entirely filtered out almost at the raw audio stage when the mouse showed up. That's focus.


I'm finding myself deep in black and doom metal while coding. Both genres are kind of droning with very saturated sound spectrums, the main diffrence is the tempo of the songs really. Most importantly though, the vocals are generally growled and very low in the mix. Absolute best is vocals in languages I can't understand. Clean vocals breaks my concentration.


Check out Batushka. Black Metal with lyrics in Old Church Slavonic. Guarantee you won't understand anything. Also very black and beautiful music.


Thanks! This will be the soundtrack of an upcomming API rewrite


'Music' with lyrics is using music as a carrier-wave to modulate in order to convey a message. Bound to be distracting.


The podcast Flow State changed my life - lyric-less music to drive focus, built around 30m pomodoro intervals. Highly recommended


For the sibling comment - minutes, the original timer was apparently shaped like a tomato https://en.wikipedia.org/wiki/Pomodoro_Technique


pomodoro, being italian for tomato, what is a 30m interval of it? minutes i'm guessing rather than meters, but who knows...


It’s a work style—work 25 min, then take a 5 min break. The team that invented it used a tomato-shaped kitchen timer, hence the name.


One thing I've heard recommended, and enjoyed a bit myself, is to listen to music with lyrics in a language that you don't speak (at all, I'd say) - the (heavy conjecture) theory being that the foreign language isn't recognized and parsed as "speech", so avoids the language areas of the brain.


Or music which you know very well, works for me. Hard rock from the late seventies go in one ear and out the other when I am writing.


For me it's Rob Zombie's Hellbilly Deluxe. Not proud of it, but something about it gets me into a flow state for coding sessions.


Nothing to be ashamed of, that album is great!


I find that lyrics is mostly ok for me as long as it’s in a foreign language that I don’t really understand.


This is exactly it for me. For any task that has to do with words - writing, reading, code - lyrics are devastating. Even “lyric like” music, where an instrument is imitating speech for a track, grabs too much of my attention for me to focus.

For most tasks, lyric free chill hop is a perfect balance. It replaces the chaos of my environment with a predictable backdrop that can fade out of focus.

But for tasks that require extreme focus, like putting together a novel (to me) algorithm or exploring a new code base, even chillhop is too much. I have to find a place with absolute silence - anything that grabs my attention is devastating to the task at hand.


Agreed. I use brain.fm (no affiliation) and have found it great for focusing. While I ride around the city on a bike or euc, I find faster pace music great for getting in the zone / flow state.

For the latter example, I wonder how much of it is though neaural networks wired together fire together. In essence Ive always listened to music while riding so it feels right and known, what if I had ridden all this time without music, would I be better? I don't know.


Good on you for actually getting any useful out of brain.fm

I’ve tried it a couple of years ago, and for me it was mostly repeating tunes and nothing particularly good for programming/focus work.


I don't think you can make that kind of broad pronouncement here, lest your next step be to play classical music at plants to demonstrate some kind of preconceived superiority right?

For me it feels more about familiarity. If I already have the lyrics memorized then it does not feel distracting whereas unfamiliar music can draw my focus.


Also a significant difference between music with singing, and purely instrumental music.

The human voice is highly distracting for most people.


> Soothing background piano music may actually help your focus

As I understand it, the relevant studies do not support this.


We are primed by nature to take anything social more important than everything else, except nature dangers. It makes totally sense to block out social cues "conversations" like lyrics to focus.


For me, it was always classical orchestral music when writing new code and hard rock/heavy metal when debugging. The other way around ruined my focus on either task.


i would argue that it isn't the type of music that affects you.

it's your familiarity with it.


That is my personal experience as well. The more familiar music is, and the better it matches my mood, the better it works as background for programming. When I was under a stress maximum, this (the whole CD) [0] blew away all distractions and got me super focused.

[0] https://m.youtube.com/watch?v=NzkxZfhgHso


I experience exactly this as well. I liberally use my volume up and down keys.

Perhaps the following is too personal of a take, but we're talking about music YMMV ;-)

Here it comes:

Music doesn't make me feel lonely when I'm behind a computer. And feeling lonely is what made me into a mediocre programmer. For years I've not touched a computer because it just feels so isolating when you do it for 8 to 10 hours straight.

But with music, with music I feel a shared experience between me, the artist, the feelings and the concepts. It helps that this form of "musical reasoning" doesn't cost me a lot of brainpower since I've been doing this on autopilot since I was a kid.


Exactly this, I think music helps with energy/motivation to smash through a well understood but fairly uninteresting task, which outside of the HN Elite is most of our day to days.

For understanding a new concept or problem the finding here probably applies.


Maybe it's just my personal experience, but I find the reverse of that is also true. If the music itself is novel, I find it much harder to focus on the task at hand.

I've got about 50 albums that I rotate through while I'm coding and I can focus on the task at hand fairly well with those on, but if I put on a new album by an artist I like, my ability to concentrate on code goes way down.


I've got the same experience, especially with music that has lyrics. I've got a few favorites that I can listen to just fine while working.


Yeah, at some point music that you are familiar with becomes background noise. I used to be able to sleep to Loveless by My Bloody Valentine at high volume. I used it to drown out other sounds when I had loud neighbors in an apartment on the bus line. When you listen to something that often, your brain just ignores it.


This reflects my experience as well. When I more or less know what I’m doing (where my typing is essentially the rate limiting step), playing familiar music helps me to focus, but when I really need to stop and think about what I’m trying to accomplish, I prefer as much silence as possible (I’ll even switch from headphones to large hearing protection earmuffs, the kind you should wear if you’re working with heavy equipment).


I think there's research on driving.

Listening to music is bad if you're in city traffic and need to use all your attention, but good if you're on a country road and risk just losing focus.


Psychology research has long shown that outside factors impact poor performance but are not a factor in skilled work, which may apply here


I wonder how much of the effect is owed to blocking out other stimuli that might be more disruptive?


Accurate for my experience as well.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: