Alcohol increases confidence in one's abilities.
Everyone has some skill they insist they are "better at" when drunk.
Everyone has some skill they insist they are "better at" when drunk.
These are only weakly connected.
"What?! Are you crazy?!"
"Don't worry, I got this."
Goes on to write vanilla JS.
Anecdotally, I've noticed that I'm significantly more fluent in my third language when I've had a drink or two. I get many, many more compliments. When I'm totally sober, I tend to trip up more and overthink the grammar.
There are lots of ways to reduce a hyperactive prefrontal cortex, including training (practicing art, meditating, etc.), but alcohol is by far the cheapest, quickest, and easiest.
I do not in any way shape or form endorse doing the same thing with writing production code.