I used to get such incredible enjoyment from just coding all day, then listening to music and coding all night while drinking.
It was better than going out and seeing friends or doing anything else.
On the programming side, needing just a keyboard in front of you with the potential to make a million+ dollar company was always such an incredible motivation.
So it was like, you are not just listening to music and drinking and having a good time...I was getting all that enjoyment while also working on something that could have a huge pay-off, and that was intrinsically enjoyable anyway.
The reality though is that the quality of work you do while drinking is sub-par. It is a huge motivation boost initially and can throw you into a different mindset to let you pound through a couple of hours of work that would have been boring. It can brake a procrastination cycle where you might have been staring at a huge mountain of work, unable to take the first step.
But if its no work compared to some work, this can sometimes be a good thing.
It did reach a point where I would work all night, wake up late in the afternoon, and then be looking forward to the sun would going down before having another drink.
But honestly, I never saw it as a problem. And it really never became a problem. It just naturally balanced itself out. If you drink too much, you feel shit the next day, so you drink less and tell yourself off.
During the day I get high off exercise which is just as good. Evenings, sometimes I'll have a beer or two, but usually its already too late before I even consider it so I go to bed.
For me, I think programming in and of itself, and music, and exercise are all just as good as drinking, such that it never became addictive.
I can see it would be an issue if you experienced burn out, you have deadlines at work, and the only thing that eases the feeling of burnout is drinking. But I see drinking more as inertia, rather than fuel.
I think its very unique to everyone's built-in motivational systems and life circumstances.