Forced Coding
webr3.org
webr3.org
This is excellent advice!
Whenever I'm frozen, this is what I do, and before you know it, I'm doing something else.
I focus best when I have an immediate challenge or a problem to solve. Same for coding - diving right in to stimulate myself, and then I can start thinking of solutions/designs as I tinker with the small stuff and (re)acquaint myself with the structure/API.
What!? Has he never read Code Complete? I'd rather be 2 weeks overdue with no bugs than on time with 80 bugs. 80 bugs means I'm really overdue by a month...
Note: It's a FUN post, not really practical for coders [eg: "Graham Greene wrote exactly 500 words per day, even stopping mid-sentence if necessary"] but a nice distraction.. just what you need when you're battling procrastination.. :)
On the other hand, http://pom.sagepub.com/cgi/reprint/33/2/173.pdf claims that music listeners (with practice) produce similar quality results in similar real time, but 1) have less actual time working (the music does distract) and 2) feel better.
I often listen to (mostly classical) music while programming, but I'll pause it if I feel memory-impaired, or need to make an important decision.
For me that means using music that is ambient enough without verging on elevator muzak style irritation. I ended up with instrumental hip-hop (dj shadow, etc).