Not all music is made the same. The quote mentions lyrics — indeed lyrical music can be distracting. However, I think, as in exercise, music can boost productivity if it aligns well with the activity, e.g. provides enough space to think in coding while enhancing mood, pace of thought, and focus.