While I totally agree on the dangers of multitasking, I found a certain genre of music to help me to get into a flow state while programming and thus massively boosting my productivity.
It's even more effective than thunderstorm or "train in the rain" soundscapes, just as long as it doesn't have much in the way of lyrics.