r/AskProgramming • u/madza911 • Jan 14 '21
Music or No music while coding?
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?
70
u/starcrafter84 Jan 14 '21
If I’m doing mindless copy/paste typing type stuff that just needs doing with little or no thought then music helps the task pass quicker. If I actually need to think about something then the silence and zero distractions are the best option for me.
11
u/EmperorDeathBunny Jan 14 '21
Ditto though i find some soft ambient music can also be helpful for focusing on complex problem solving.
3
u/localhost8100 Jan 15 '21
I have that hip hop mix live video going on in my YouTube. That helps a lot.
1
u/starcrafter84 Jan 15 '21
I fail to see the correlation between hip hop and productivity but you do you
32
u/Angrydroid21 Jan 14 '21
music or pod cast... silence is deafening
1
u/FlandersFlannigan Jan 15 '21
Same. I wasn’t able to do a podcast for a while, but now I can.
1
u/Angrydroid21 Jan 16 '21
Awesome. Love a podcast about how f'ed up the world is while a build a beautiful one in code
0
Jan 14 '21
[deleted]
8
u/FlandersFlannigan Jan 15 '21
If I could get pure silence, it would be pretty cool.
2
u/Fidodo Jan 15 '21
Noise canceling headphones?
2
u/FlandersFlannigan Jan 15 '21
I actually just bought the xm4s and they’re very dope. Sometimes I do just have them on with noise cancelling on and no music, but I mostly listen to EDM.
3
u/natural_lazy Jan 15 '21
I guess this is why either I stay up till 4-5 am or sleep early and wake up at 4 am.
1
1
1
u/Angrydroid21 Jan 16 '21
Sorry mate, each to their own but I find it painful. Maybe because the only time I want silence every thing has gone badly wrong.
Most of the time I use music to enhance my 'flow'
27
u/CatNamedNight Jan 14 '21
I can only listen to music at the same time if there are no lyrics. I play a lot of aphex twin or brian eno.
3
u/ike_the_strangetamer Jan 14 '21
Me too. I use mixcloud so I get a long continuous mix. Liquid DnB is my go to when I really need to focus.
1
1
1
43
u/LoganEight Jan 14 '21
Lyric-less music for me. Trying to think about coding logic while having someone saying things in my ear doesn't work. I can't tune out the voice.
Go for Synthwave for the extra cool bonus hacker level up style points. And definitely wear sunglasses and a leather coat while sitting at your desk ( /s, but I was serious about the synthwave part)
9
u/sharkbound Jan 15 '21
i agree with synthwave/vaporwave stuff, it really great for setting a programming mood
3
u/LoganEight Jan 15 '21
I have not heard of vaporwave! How different is it? Any recommendations?
12
u/AyyItsNicMag Jan 15 '21 edited Jan 15 '21
Vaporwave takes influence from the 90s whereas synthwave/retrowave/outrun is 80s. Synthwave attempts to embody an idealization of the future from the perspective of the past (80s) (so, an optimistic and grandiose feeling) , whereas vaporwave is an idealization of the past from the perspective of a commercialized future (a feel of longing to return to simpler times, more downbeat, slower tempo, etc). Truthfully, there's not much difference, music-wise, unless you really know what to look for. Synthwave (typically) purposefully degrades the sound quality more than vaporwave to emulate a time with worse production quality and means of recording synthesizers, and also uses more analog or analog-emulation synths and sounds.
Also, visually speaking, vaporwave art is generally lighter, uses more white, and often uses pastel colors and references to 90s consumerism intermingled with Greek statues, palm trees, and whatever the hell they want - kind of nonsensical, but to each their own. Synthwave/retrowave art uses more black and neon colors, with a low-poly graphical style and many sharp lines, perspective grids, and references to setting suns and night life.
Edit: Dang I didn't think this rambling was worth silver 0.0 Well, thank you to whoever gave it!
2
u/sharkbound Jan 15 '21
i think its pretty much synthwave, i am not sure of the difference myself, but i have greatly enjoyed bunny's vaporwave/synthwave stuff : https://www.youtube.com/channel/UCnNVg98NEa17sntu3Xsiodw
30
u/RheingoldRiver Jan 14 '21
Video game soundtracks!!! Videogame music is specifically composed to be pleasant to listen to while not being distracting. I find it makes for the perfect background music while coding. My all-time favorite soundtrack is a really simple piano score to the videogame Splice by a small indie studio called Cipher Prime, my playcount on it is well over 1000, and on one of the tracks it's over 2000 because one time I had it on loop(1) for several days without realizing lol. Some other games I like a lot are Stellaris, Starcraft II, Final Fantasy X, God of War, Ori and the Will of the Wisps, and Katana ZERO. The last one is significantly more upbeat/intense than the first ones. I would definitely suggest trying this genre in general if you like the idea of listening to music while coding but have never been able to maintain concentration!
7
Jan 14 '21
Same. The soundtrack to Celeste, an apparently good (?) game that I've never played, is one of my top plays. The only problem is that now the computers think I like videogame music in other situations, and keep suggesting it. There ought to be easy switches for different moods build into these algorithms.
2
u/RheingoldRiver Jan 14 '21
an apparently good (?) game that I've never played
lol yeah the only one of these I've actually played is Starcraft - I find music by reading "best videogame soundtrack of the year" reviews (yes they exist, and this is the best way imo, it's a really fun couple weeks every year in December to discover new music!), asking for recommendations from friends or followers on Twitter, randomly listening to the OSTs of popular games (usually they tend to suck, the exception being this year Hades was quite good), but never by actually playing games
The only problem is that now the computers think I like videogame music in other situations
ah I do not have this problem, I just love videogame music haha
I'm not sure I've listened to Celeste, will check it out!
3
Jan 15 '21
Oh man, I remember Splice! Great soundtrack! I actually got a story about that! When I was in school I was working on a flash game for a class project, and I emailed the devs for permission to use the soundtrack, lmao. I was a precocious lil weirdo.
Anyway long story short they emailed me right back and said I was allowed to as long as I sent them my schoolwork afterwards, hah hah.
2
1
u/Fidodo Jan 15 '21
That's a great point. I was wondering why video game music works well and it's because it's designed to.
10
Jan 14 '21
Podcast for brain dead task, music most if not all other times. I usually prefer stuff I can sing along to, it keeps me focused, cause my attention span only works when i'm overloaded for some reason.
7
u/MadLadJackChurchill Jan 14 '21
Everyone I've told this thinks I'm weird or I'm lying. I don't think I come up with better solution this way but I can just sit there for hours without noticing it and work away. I like leaving out melodic vocals or solos though and just go for a full on drums in my face kinda vibe. Meshuggah - Bleed is the Kind of drumming I need for this : D
8
u/borisroson Jan 14 '21
Often headphones in with nothing playing, just so people don't bother me as much !
7
6
u/Prexxus Jan 14 '21
The office in the background 24/7.
1
u/birdsandberyllium Jan 15 '21
Yeah honestly, a noisy office is productivity perfection for me. Dead silence is just painful and headphones in puts my brain in "moving from A to B" mode, not "doing work" mode.
5
5
3
3
2
u/isolatrum Jan 14 '21
The best kind of "music" imo is ambient soundscapes. I'm not into the whole pseuscience thing about wavelengths affecting your brain, but I definitely feel more relaxed after listening to ambient drones for a while. Personally I'm a very musical person (a drummer) so I tend to "pay attention" to music I'm listening to. This is why listening to beatless music works well for programming. It's very difficult to actually pay attention to it so it can properly be background music. Of course, ambient drone isn't for everyone. It just depends on how easily you can tune out the beat when listening to music.
2
u/hipstergrandpa Jan 14 '21
I know it’s overdone but the chill hop channel on YouTube is best for me. Just simple loops with decent (not too catchy) riffs are perfect for getting into the mindset for me. Everything else is purposefully trying to become an ear worm of some sort and that is too distracting for me.
2
Jan 14 '21
If the background audio is enough to grab your attention to listen along to it, then it's going to be distracting.
Doesn't matter if it's a catchy song you've heard a thousand times. If there's audio you comprehend and can follow along (even if it's foreign, but you know the lyrics)... it's a distraction.
Some people cope with distractions perfectly fine, others do not. It's up to each individual to judge how much distraction they're capable of handling. Sometimes playing classical music in the background is enough of a distraction to annoy the programmer.
I recommend no music in the "Deep thought" phase of your project, and everything else is to taste.
That means if you are trying to "think" (rather than just doing what you need to do), then no music, no whatever. It's just going to distract from your thought processes.
But if you're in a stage (i.e. autopilot) where you know what you need to do and you're just plugging out code for those steps, then non-sensical music/background noise will be beneficial most of the time.
2
2
2
2
Jan 15 '21
I like to listen to music when doing busy work type stuff, but prefer silence when working on a tough problem.
2
u/djfreedom9505 Jan 15 '21
Depends what I'm doing. If I'm working on something that is pretty straight forward and I'm not really running into any issues, music kinda pushes that momentum. But if I'm stuck, I have to turn it off and actually concentrate.
1
u/inquisitor_pangeas Jan 14 '21
I always study and code with ASMR or music on but only if the songs are instrumental or at least not in English or my mother language. If I understand I'll be distracted, two exceptions are when I do math or something artistic. Then i can sing along without being distracted
1
u/Matt5sean3 Jan 14 '21
Usually I'll have music going. Some music is better than others, though. Usually OC Remix stuff does pretty well for me because most of it doesn't have vocals and it's based on music that is meant to be non-obtrusive. Besides that, any albums that I've heard lots of times before are usually fine. Podcasts are generally too distracting for me to listen to while working.
1
u/pipestream Jan 14 '21
Depends, but I definitely cannot listen to neither music not intelligible speech. I'm probably going to be laughed at for it, but I find certain ASMR videos relaxing and nice background "noise" for focused work. No sudden sounds or sounds that are too noticeable. They distract me like hell.
Complete silence sometimes makes me slightly anxious, other times I focus so hard I don't pay it any notice.
1
Jan 14 '21
I usually go for some instrumental music, it increases my productivity and keeps me focused
1
u/catwalkjesus Jan 14 '21
Silence or background music to not steal focus. Background music for me is either video game background music, there are a lot of playlists on YouTube for that. White noise or also nature sounds are great, there area few apps for that.
Sometimes I do put on some actual music but that's only for low focus work like sending emails to non-technical people.
When physically at work I always have headphones (sometimes without any sound/music at all because I can forget to put some on sometimes) on so that people don't bother me as much.
1
Jan 14 '21
Personally I have a lot of noise at my environment. So, if I’m going to hear something I prefer it’s music I like rather than any other random annoying noice.
2
1
u/Gabe_b Jan 14 '21
I vary. When I was first starting out I really liked Tchaikovsky, but now I basically just use my standard Spotify stuff if anything
1
u/nevermorefu Jan 14 '21
Pelican and Russian Circles for me. Instrumental, intricate, and ambient.
Add in Animals as Leaders if reading SciFi books.
1
u/bbro81 Jan 14 '21
Anything with lyrics is a no go.
I tried listening to podcasts but then noticed my productivity fell off a cliff. no music at all is distracting because I have ADD and everything is a distraction so music helps level that off.
My top listens, Lofi, prog metal (no lyrics) Classical music, chopin, etc. Been on a jazz kick recently.
1
u/yanitrix Jan 14 '21
Depends. Most of the time I listen to music while coding but sometimes I need complete silence to wrap my head around a problem I'm trying to solve.
1
u/bryon257 Jan 14 '21
I typically listen to music that has a fairly fast beat. They lyrics I don't find distracting and I find that the faster beat helps keep me focused on what I'm doing and working the issue. I can't do podcasts or tv shows or anything where my brain is trying to pay attention and the process what it is hearing.
If I'm diagramming or documenting something I find nearly any noise distracting and will typically leave my noise cancelling headphones on my head without music.
1
u/not-a-trole Jan 14 '21
Always got headphones on... this is my "working" music. Like this one is literally about scrum sprints. I don't do "focus", ever, but sometimes when coding there is "flow" and the music pretty much disappears even though it's still playing.
Oh but it's all very familiar songs for working, listened to hundreds of times... new stuff is very distracting. Because it has to be processed, duh.
1
1
u/sharkbound Jan 15 '21
i listen to somafm stations often (groove salad, defcon, vaporwave), other times i listen to electroswing revolution radio, and the other thing i listen to a variety mix playlist i have on YT of any songs i find interesting.
i often switch what i am listing to, i try to match my mood often, sometime i shuffle some artist i like on YTMusic (the hush sound, caravan palace, parov stelar, ect)
but i am always listing to something, unless i am having to read a lot of text (doc, challenges, ect)
1
u/Rungekkkuta Jan 15 '21
I'm not a dev but I find that music kinda keeps my mind distracted while I can focus on solving the problem. I know it sounds weird but I get distracted very easily without music. It's like the music keeps the part of my brain that distracts me busy
1
u/BigfootTundra Jan 15 '21
I love pair programming but one of the best things ever is just zoning out, listening to music, and coding.
1
u/whitespys Jan 15 '21
I often listen to those 1-2hr mixes on youtube. That have vaguely specific genre-names. "Industrial soviet goth cyber swing" mix. "Symphonic robotech hyper synth-metal".
When there is a commercial, I do a little walking around. If I am really in the groove I'll skip-ad and keep coding.
1
u/infiniteAggression- Jan 15 '21
Music all the time. If I'm doing menial tasks then I listen to just about anything but if need to concentrate a bit, I prefer listening to instrumental music like Two Steps From Hell / Audiomachine or vaporwave / lofi, basically nothing with lyrics.
1
u/ghostwilliz Jan 15 '21
I love to listen to shoegazey stuff like liturgy, after the burial, lantlos or something instrumental like him Hopkins, aphex twin or iglooghost, but it's usually too distracting
1
u/senpaizoro Jan 15 '21
Always music, preferably no lyrics! It helps me focus better on tasks that will take longer. Without music I get distracted easily.
I usually go for long trance or melodic techno sets
1
1
u/theCumCatcher Jan 15 '21
it depends. if its a topic i can easily enter flow with, then music is welcome.
if not?
silence until i can
1
u/LunarLorkhan Jan 15 '21
Synthwave if I’m hyped or lofi hiphop with ambient rain sounds if I’m gonna be working on something for a while. It could be a pavlovian response at this point but I have a hard time settling in and focusing without some noise to drown out the world.
1
u/gvozden_celik Jan 15 '21
I usually have some instrumental music on while at work (these days it's usually EYOT), because the office building is next to a busy road and also train and tram tracks, so it's easier to stay focused in all that noise from the outside with something to cancel it out.
1
u/Ghoatz Jan 15 '21
Mood or Pragmatic music &/or audio
@ office Mon-Fri
7am Spotify (Nick Cave pushing the sky) [loud office speakers]
8am upskill (no music)
9am brain.fm (big brain time) [earphones] 2.5 hrs.
11:30am daily standup (no music)
12pm news cycle, snack (no music)
12:30 Spotify (fresh mixed upbeat) [earphones] 1.5 hrs.
2pm no music, office comms
2.30 end of day
@ home
audiobooks/YouTube while coding
@ public
I don't code in public
Opinion on is music a distraction or required: /shrugs w/e
1
u/Fidodo Jan 15 '21
I like instrumental or international music for coding so I'm not distracted by the lyrics.
1
Jan 15 '21
No music. Other people's creative products kill my stream of creativity because I am distracted by their brilliance
1
u/Hogis Jan 15 '21
I've always seen music to distract from work that requires concentration. I remember that in elementary school, our teacher put on some classical music while we were reading or writing or something. I had to do that in the hallway because I couldn't concentrate otherwise.
I only have music on if I'm doing something mind numbing, or if my asshole neighbors are drilling their walls like they've done for the past year. I don't know what they're doing, it's like they're making their apartment into swiss cheese.
1
u/ChiredditG Jan 15 '21
It depends on context.
If I'm working from office no, I need to focus on what my teammates are sayin to cooperate at the best.
I'm in smartworking since 12th March 2020 and I've got used to music and Youtube while coding, those give me a bit of company to feel less lonely haha
1
u/casper_161 Jan 15 '21
Am i the only one who listen to music while coding but while encounter a bug i just throw away the headphones and get serious
1
u/dannypas00 Jan 15 '21
I usually listen to some soft calming lofi just to keep the silent insanity from looking at the same erroring code for 8 fucking hours
1
u/LogaansMind Jan 15 '21
I prefer music or near silence. I struggle to concentrate when the music has lyrics (or there are dicussions going on in the room).
I typically listen to Dance, Trance, Hardcore, Metal type music. Game music is quite good too, I understand it has been designed to be played for hours on end, but some tracks make me want to play instead of work.
1
u/Raph0007 Jan 15 '21
My brain is like a toddler: if you don't give it an activity that's stressing it out 100%, it's gonna be bored. It's finding other things to do that are way more interesting anyway and that then completely distracts me from the main activity. Weird, I know.
So, ironically, I have to distract my brain just enough to not be distracted. I usually do this by listening to music (and I don't care how much in the foreground it is). If that isn't enough, I get some tea to drink or even bring my food to the desk. Those are mostly measures for very boring tasks, though.
But music kinda works all the time. The only occasions where I noticed that music distracted me negatively is when it has lyrics I understand (English or German), and I'm trying to read or write something that is not code. For example, I'm reading a guide for some new framework, or I have to write a message on Discord or WhatsApp Web. When I'm actually coding, though, the music was never a problem.
So yeah, hard to say. I think everyone is different, and you should probably try for yourself to find out whether it distracts you or not.
1
u/A_Philosophical_Cat Jan 15 '21
Depends on what I'm doing. If it's plumbing work, any music is fine, sea shanties are my go-to. If I'm actually solving problems, lyricless music (I like synthwave stuff). If I hit a hard problem, I take my headphones off and pace around, maybe juggle, or scribble on a blackboard.
1
u/Ascomae Jan 15 '21
Depends, of my children are loud, I prefer music.
Sometimes I also like music if they are silent.
1
u/needafightingchance Jan 15 '21
I listen to metal music with no lyrics. Usually find them on YouTube. Ambient Worlds is a channel on YouTube with lots of great background music to listen to. I prefer music from fantasy worlds like LOTR and Harry Potter.
1
u/hugthemachines Jan 15 '21
I listen to vocal female trance or nature sounds. Vocal trance has simple lyrics so your mind do not caught up in it. Vocal trance often have crisp clear song so you don't get mental disharmony by bad singing... I am sure they use auto tune or something, still I appreciate not getting bad singing as a result in my ears.
When I feel like I can't grasp a problem, or my mind feels overloaded, I put on nature sounds... birds, water etc... I read a while back that bird sounds is one of the quickest way to get the brain to get into shower thought mode. It is very relaxing anyway.
1
u/GrouchyMinder Jan 15 '21
When I’m revising/soft learning I listen to instrumental beats like “chill rap beats” but when I’m learning something for the first time/getting over a learning curve it’s normally just silence. But the good thing about instrumentals as it puts me in a kind of trance where I’m just bopping my head for hours. Still remember this is what got me through the 6 hour days at the library writing my dissertation haha.
1
u/TrickyTramp Jan 15 '21
Mostly electronic music without words or repetitive words. House, Trance, Techno, stuff like that.
It helps drown out other people talking and gives me stimulation. Plus I'm passionate about the scene
1
u/Rhemsuda Jan 15 '21
I find any time I listen to music with English lyrics I can’t focus. So I usually listen to like Jazz, Electronic, or Metal. Basically if I can’t keep my internal voice on the front-line I find I’m not as productive
1
u/69632147 Jan 15 '21
I find I work better with music because it IS a distraction. The music isn't there to listen to: I have an overactive mind (they tried to diagnose me with ADD but I can sit there reading for 5 hours so it's not that)so I find if I give my mind a familiar song, it follow it, and allows me to focus on the task at hand. Other people can't handle the stimulation and need 100 percent of their mind to focus. So if you find your mind tends to wander, music. If not, no music. Everybody's different though, that's just my take on it.
1
u/n1c0_ds Jan 15 '21
I like techno, because it puts me in a good mood, but doesn't distract me while I'm trying to read.
1
u/1842 Jan 15 '21
Music helps me get in the zone and block everything else out.
I tend to listen to more aggressive styles, which for me lately has been melodic death metal and metalcore. I'm a musically inclined person, although I don't often perform or even find time to play instruments often right now. It's just something that works really well for me to put on headphones and block everything else out for a while.
When I worked in a very busy open office, I had to layer both noise and music to block most of it out. I'm back to a quiet cube, so I just do music again. However, I do occasionally use various generators on mynoise.net and they are fantastic.
I suspect I have some minor undiagnosed ADHD. I can work without music, but I find myself more easily distracted and far less productive. Music, low amounts of caffeine, and work/break cadence help me get through the day productively.
If I'm doing mindless work, I will sometimes do podcast/YouTube videos, but only for the dullest of activities. They're far too distracting if I need to think about anything.
1
1
u/FeaturedSpace39 Jan 16 '21
I use whitenoise or purplenoise. Music distracts me but when it’s quite I also hate it. Trust me you need to try it.
1
u/NaNaNiiiall Jan 21 '21
I'm an audio programmer, so I pretty much can't listen to other audio when working, unless I want to keep pausing it every 10 seconds. Often I'll split some tasks up into "needs listening" and "doesn't need listening" so that I can have a 'break' from the silence/critical listening and listen to music whilst working.
0
101
u/mfizzled Jan 14 '21
I have videos of non English speaking people cooking street food on in the background. If they speak English it just distracts me.