More than once I've been in an office where beer or wine was a normal Friday afternoon thing, usually serving 1 or 2 drinks while you finish up the day and then head out to a short happy hour (1-2 drinks more at a local pub) or sticking around the workplace for a few minutes after work to chat before scattering for the weekend, but I always found if I have even just a few sips of alcohol while I'm working, it's like slamming on the brakes! It totally knocks the wind out of my sails and I just sit at the computer screen and think: βWhy do this now?β So if I'm trying to work I definitely won't mix coding and alcohol.
If you are drinking as an activity, doing a bit of coding might not be such a bad idea, but while you're coding as an activity I don't think doing a bit of drinking helps you get done any faster.