Feynman's Letter to Wolfram
lostandcurious.blogspot.com
lostandcurious.blogspot.com
"... One of the things he often said was that "peace of mind is the most important prerequisite for creative work." And he thought one should do everything one could to achieve that. And he thought that meant, among other things, that one should always stay away from anything worldly, like management. ..."
The reason for this is thinking under stress is quite difficult and anything you can do to reduce it allows more thinking time.
Q: Is a startup environment toxic for thinking?
So it's not surprising prime hacking time might be after hours in a room with the door locked away from distractions such as noise, offices and other people.