Studies have shown that classical music tends to improve concentration, and rock music tends to disrupt it. Something to do with how the format of the music builds logic connections in the brain. Given, the latter is probably better at waking you up (unless you listen to Sousa), but I don't really see how it could improve your coding.
Rap is about as useful as shooting yourself in the head.