If it's something tedious, i.e. robotically making some kind of change throughout a code base, then my attention span can handle the additional load and the music may help me not procrastinate.
But for anything involving serious thinking, all forms of music I've tried are too much of a distraction.
I have ADD, which may be a factor.
Haven't been diagnosed, but attention span is pretty short.