This fascinating article explains that those not prone to boredom generally performed intellectual tasks better while listening to complex music as opposed to simple or no music, while boredom prone individuals performed better with simple or no music at all. Definitely worth a read if you're interested in the impact music plays during periods of focus.
It got me wondering about what kinds of music people prefer while they code. Personally, I tend to prefer electronic, vocal-free music, but I can also surprisingly listen to heavy metal and still stay focused.
What do you listen to while coding, if anything at all, and why?