That might be procrastination but remember that the brain keeps working on different levels. While you're doing something else you might come up with the solution you were looking for.
So far I found out that procrastination brings me some benefits, namely:
- I have a better high-level overview of software development - this way I can keep in my head lots of things that I wouldn't usually think about.
- I have lots of ideas on how to solve everyone's problems :). This is actually very important for me, as my relationship with some of my friends looks like this: they come with a problem, and I throw solutions at them until one sticks, and we're all happy.
- I have lots of ideas for hobby projects that I usually don't have time to pursue :( (e.g. idea for nyan-mode was a result of procrastination and office jokes).
However, all those benefits come at the cost of me not doing things I'm supposed to be doing at the moment. When I encounter a hard-but-not-too-hard problem at work, I might procrastinate for a minute or two, but then I sit down with a piece of paper and just solve it. However, if the problem is really hard for me, procrastination becomes a way to escape from it; I might read HN indefinetly and I still wouldn't solve it. Not to mention that there's a threshold point, after which every minute spent on procrastination makes me more tired.