Many people i know have problems concentraing while coding. What is your tip for staying concentrated and focused? I listen to Nirvana, because somehow kurt Cobains voice helps me being focused. Also, I found this great webpage https://musicforprogramming.net/ I recommend it, the music is pretty neat.
In the past I would listen to the Initial D soundtrack. More recently, I find myself working better with no music. A clean desk and efficient window tiling help a lot.
I haven't yet had the problem of NEEDING to stay focused, if I'm programming something i'm interested in, I'll just do it and enjoy it, and if i'm coding something that's just ok, I'll work on it when I'm in the mood. However, I sometimes listen to soundtracks or songs on repeat, repetition in the background i think helps keep me focused.
I just try to do projects that are interesting and that alone can be self sustaining for programming interest. If you are being forced to do a certain project, then whatever the purpose for doing it should be the drive, ie. A grade, peer-satisfaction, money (job) etc.
Like a lot of the people commenting on this thread, I haven't really had trouble focusing on programming if I have a goal/deadline to fulfill or I'm really determined. That being said, I do also listen to music, notably rock n' roll, with bands like Rage Against the Machine covering Bob Dylan. A lot of songs with strong messages and riffs/solos. My Playlist. I also guzzle coffee. That may help, but I have a high resistance so I don't shake/spasm that much.
I don't need something to keep focused,since I really love coding, however, I do listen to anime covers and soundtrack from Spotify sometimes.