None. I don't drink, and if I'm impaired in any way (e.g., sleep deprived or brain-fogged by antihistamines) I don't write code.
Doing otherwise is just plain irresponsible.
Doing 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!