1. How big the code is.
2. How nice of a day it is outside.
For me, if it meets both of these criteria, I print them out, grab a pen, a can of chewing tobacco and head outside to enjoy two of my favorite things: code and nature.
For me, sometimes it's easier to get out of the computer for a bit... I'd say personal preference