What do you do for keeping your concentration while coding?
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.
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.
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.