Ask HN: Drunk programming?
Who can do it? Any tips? Back at University I could all the damn time. Now that I'm writing "production code" (lol) I can't for whatever reason...I think I just can't concentrate enough, perhaps? Not really sure what's blocking it.
So, can/do you? Any hints or tips?
Note: Posted while drunk.
13 comments
[ 3.7 ms ] story [ 36.1 ms ] threadIn my opinion, this is an urban legend.
Also, I can code as hell all night long drinking whiskey+coke, while with beer my motivation vaporizes the moment I open the can.
About student life vs real life, now you're simply tired of working so you're less motivated to do code when you drink at home to relax. That's just it, I have the same experience.
Write drunk, revise sober. -Pragmatic Guide to Thinking and Learning
I can write code drunk, but I never would for work. When you need to get it right the first time, or work without a spec, or work on production code that's mission critical, you're going to start thinking of all the things that can go wrong (and second-guessing yourself a whole bunch). Try writing drunk for your personal projects where creativity is required, and try and keep the booze out of the (home?) office- can't imagine what good would come of it.
Weed, yep - checking my code in the morning makes me want to weep with joy, because there's so much of it and it's so cleverly done compared to my usual fare. The only problem with it is that I never comment or use descriptive variable names... so it can be a bit tricky to get my head around at first. It's basically done by a much better programmer than me, but one who doesn't realise the importance of clarity of intent.
When you write code for other people to use though, it's best not to get drunk. I think drunk coding is great for hacking, not so good for production code. I'm with hcarmichel, keep it to one or two beers tops.
Past drunk (eg wasted), I can't do it, and beer usually just saps my motivation completely.