At work, I now code in Python. In my previous job, I was a Network Engineer. Both require extreme concentration while being able to see the big picture while working on numerous details and project parts simultaneously. I've always been one to take frequent short walks to reset my thinking, then when I get back to it, I've got a different mentality. It allows me to take a step back to the bigger picture again and see things in a new light.
When it's raining and I'm at home coding on my own projects like today, I get up, play a bit of PS3 and have a beer, then come back to it.
I'll even blabber to my girlfriend who looks at me dumbfounded, then she's surprised when I say "holy crap, I think I just figured it out!".