I do both. My productivity fluctuates in both environments, but probably is slightly worse at home since there are distractions that can pull me away from my laptop. I've wasted entire days watching TV, usually the news, at home. On the flip, I've buckled down and pushed out some significant pieces of code.