Ask HN: How much of your production code have you written while drunk
This is pretty much straight-forward. I'm trying to co-relate being drunk and production code, so please be honest here - how much of what you have written and is still in production is while being under the influence?
12 comments
[ 3.1 ms ] story [ 160 ms ] threadDoing otherwise is just plain irresponsible.
Give me the explanation behind that.
I don't think that's a good idea, either. In both cases, if you make a small mistake you might need to support it for the next couple of decades.
BTW the answer as to why not code when drunk is that you are almost certain to do a bad job. Coding requires discipline and thought, attributes you usually seek to abandon when drunk.
edit: apologies, cperciva, hadn't read your profile. Backup software is nearly as critical!
These days I generally find that a beer is fine, two can give a temporary boost in productivity (as I find it easier to focus) but more than that and I have to stop.
Alcohol's probably the wrong substance to code on. Something like caffeine is probably better.
You guys are taking yourself why too seriously, for a (most probably) lousy job.
Some of the bits and pieces I wrote while intoxicated did end up in production, but only after careful review, so... that doesn't really count, does it?
Personally I find my work to be fairly similar to a writer's, in that my prime responsibility is to produce something interesting for an audience. Nobody will hold me liable for the means I've used to get there. So, like many authors, I'm not averse to having a few drinks while working late at night.
But always check your commit logs the next day. :)