In my experience drinking hasn't been conducive to being a good programming/problem solver. I don't have the mental stamina to finish a program when I'm hungover.
"Drinking Alcohol May Significantly Enhance Problem Solving Skills" http://medicaldaily.com/news/20120411/9496/alcohol-solving-s...
I guess for me, alcohol promotes the open mode, but pretty completely wrecks the closed mode.
[1] https://twitter.com/#!/Renessa47/status/190802692245950464
(Don't tell me it's an American thing. I know it isn't as simple as that.)