Night Hacking (the productivity boost of 2 am)
codeclimber.blogspot.com
codeclimber.blogspot.com
Order people to work at 2 am and see what remains of this productivity boost.
I think there's something biological going on as well. Around 1 or 2 am, I sometimes get a bang of energy and creativity that I never get during the day. It's the "second wind," the injection (possibly) of cortisol and other stress hormones that cause my body to go into stress-protection mode. I become hypervigilant, which causes fewer bugs. I think more quickly, writing code faster and coming up with amazing design ideas instantly.
If you think about this from an evolutionary perspective, it makes perfect sense-- in the animal world, when you become stressed (i.e., a tiger comes up behind you, or you get exhausted looking for food) the outcome is binary: either you die or you live. So the body does extraordinary things to keep you alive, like make you temporarily smarter and more focused.
Over hundreds of thousands of years, perhaps, the body has developed in such a way that the lack of sleep for some number of hours (for me, almost exactly sixteen or seventeen hours) triggers the release of stress hormones which sacrifice the body's current state for mental and physical agility.
When will someone figure out how to hack my brain to make it like that all the time, without the nasty side effects (sleep deprivation) the next day?
More info:
http://www.medscape.com/viewarticle/502825
http://en.wikipedia.org/wiki/Cortisol
http://en.wikipedia.org/wiki/Norepinephrine
I should do more research on this.
Still, I look forward to the alone time when I code at night too. I even structure my day around it a lot of the time.
Day-to-day energy levels are cyclic too. Every day I want to take a nap at 3:00 in the afternoon. I'm also most energized from around 10:00 to 11:00 in the morning. It's a pattern.
A boost of energy at a certain time at night happens likely for the same reason it does during the day: levels of consciousness are cyclic.
As far as nighttime being more productive: there are fewer interruptions which means you can concentrate. It's easier when your cell phone/RSS/Twitter/blog/text/email isn't blowing up.
In the wee hours typos, syntax errors and simple transposition bugs seem to abound and those take an annoying amount of time to track down and fix. Best to just write the plan out in detail and leave the implementation until morning, unless you want to peck at the keyboard for much longer than you would have when awake.
"Dude, what the hell are you doing at this ungodly hour?"
"I am trying to get _____ done"
"Oh okay"
So, you are continuously conscious and aware. Naturally you are more productive. I create the same phenomenon during the day too by using a simple tool that I wrote for this exact reason: Smacklet http://www.smacklet.com
( shameless plug, but I mean it )
Then when I read the author's reasons for being so productive at night, I realized that you can do all of that during the day. I never IM, text, or RSS, only a few people have my cell phone #, I only check email (and hacker news) every hour or two, and the door is closed. Works great.
Whatever works for you, do it.
Now I get my best stuff done before most people wake up. I start to slow down a little after lunch. After about 7 or 8pm I find it hard to get any good work done.
I was just trying to find a quote I used to like, about it being uncivilized to expect people to work after lunch... I think it was by a famous mathematician or philosopher, but I can't find it now - does anyone know who I'm thinking of?
I do find that having nobody around me is a huge boon to productivity, enough that it can sometimes offset the nighttime effect. It's not just the lack of interruptions: I've found that the mere presence of people makes me concentrate on the work less, whether they're talking/IMing me or not.
The upshot is code docs don't get written during a night-time hacking session.
On the one hand it might look less professional in some peoples eyes, but in others they think it means I must be some kind of super hacker. Either way, it's amusing for me :)
I'm guessing at least some here have made that trip out to the parking garage around lunchtime while simultaneously setting their cellphone alarm for +20 minutes for just a quick nap. Extra points if you keep a blanket in the back seat. :)