Hmm... I do a decent job at new, exploratory library code with a glass of wine. Not business logic, not exacting data invariants, nothing I would ever ship to production, but exploring interfaces for a library? Yeah. Asking "What does this really need to do? How do I really wish that I could write the calling/collaborating code?"
I wouldn't trust logic I wrote with alcohol in my system, or any tests that I wrote with alcohol, but getting at the heart of "Why does this library need to exist? What should it actually allow?" is enhanced a tiny bit by a mildly-altered mental state.
Over time, I've decided that it is because I get chatty with wine, and designing a library interface feels like a conversation between me and future engineers who might use said library. And then I stash it away to read and reconsider while sober.
A touch of alcohol turns the overthinking volume down which often leads to more productivity and better code. A not so uncommon ADHD experience. In university of course also sometimes I would do my programming drunk and the result would regularly be that it worked but the solutions would be very odd.
Standard ADHD meds often lead to playing Factorio for 17 hours in a row and forgetting to eat.
I've found that sessions of Factorio lasting 17 hours (or more!) are entirely possible even when a person is completely unfettered by any manner of inebriate or medication.
(It's almost like the birds can hear the loading screen, and that hearing this prepares them for their pre-dawn onslaught of particularly-profound singing.)
It can appear a bit counter intuitive because broadly alcohol is a depressant and cocaine's a stimulant.
The primary "risk" with polydrug abuse (especially uppers + downers) is that you end up taking much more than you would normally, and once the upper wears off, the downer depressed your breathing, pote being fatal.
But with coke + alcohol, even a "normal" quantity of both when combined is far worse. It's a bunch of heart signalling stuff that affects blood pressure and a few other things, in ways that really aren't good. Which is honestly pretty impressive because coke alone is an excellent way to fuck up your heart (credits, Rohin Francis/Medlife crisis, a cardiac surgeon on YouTube who posts way too less because presumably the stress of working for NHS isn't good for a doctor's health either.)
(Iirc alcohol and Tramadol are 2 things to typically never mix with other drugs; there's a matrix chart about drug interactions and these 2 are counter indicated with most other drugs. Weed, funnily and unsurprisingly, has one of the least interactions with other drugs.)
Haha...when I used to golf, 2 beers (American swill, no fancy high alcohol types) was the optimal amount. It was just enough to make me relax, which is so critical for a good golf swing.
I think that people feel that it's real, especially when under the effect. But I highly doubt its real efficiency, and especially its sustainability on long term.
I wouldn't trust logic I wrote with alcohol in my system, or any tests that I wrote with alcohol, but getting at the heart of "Why does this library need to exist? What should it actually allow?" is enhanced a tiny bit by a mildly-altered mental state.
Over time, I've decided that it is because I get chatty with wine, and designing a library interface feels like a conversation between me and future engineers who might use said library. And then I stash it away to read and reconsider while sober.