As someone who has worked in music for several years, I find that listening to it makes focusing on any other task, like coding, much more difficult. Even without vocals, I can't help getting distracted by details of the production or composition ("oh that's a great snare sound" or "I would have used a tele for that part"). So I tend to work in complete silence, if possible, and an ironic consequence of devoting myself to music is that I never listen to it anymore.