One thing that proved to be a stumbling block for me (and I was surprised by this) was finding the right music to code by. Total silence is a little difficult. I have my favorites for other activities, but none of that worked for me (not even Kraftwerk, which one would think tailor-made for programming. Alas).

Weirdly enough, though i don't listen to a ton of electronic music, I love listening to Jon Hopkins while coding. Really keeps my brain going like nothing else. This is mainly the album I've been bumping:

I used to listen to any eletronic music to code (trance, dubstep and so on),but recently I discovered a website called Coffitivity ( https://coffitivity.com/ ) that instead of music they provide ambient noises (people whispering or walking etc...) it helps a lot witth my concentration, but to be honest most of the time I listen to both (eletronic music / Coffitivity).

Another vote for Spotify. I loaded a bunch of flamenco tunes into a playlist. Lately I have been big on lists with just nature sounds, running water etc. I can not listen to anything with lyrics when I am trying to focus.