The only time I willingly do that is when I'm browsing the Web while drunk, and something about the page's behavior or design annoys me, so I'll casually open up the inspector and work out a fix.
This has happened several times and I usually end up with a nice snippet of code that's actually useful. Interestingly, I almost never do this while sober, or stoned. There's just something about drinking that makes me more eager to do stuff like that.
For any kind of work beyond that, though, I'm effectively useless when drunk.
I do it while working on side projects once in a while, but I'm usually only effective when the task is something trivial such as adding a new basic feature to a web app. It can be a lot of fun as I tend not to not overthink my code and I can come up with some creative ideas. Like many others have said when answering this question at other times, the code can be sloppy sometimes so it's important for me to add comments and make sure that I refactor.
Does anyone enjoy programming while high on cannabis? I don't think I actually accomplish that much, but I do tend to enjoy it and have solved some nasty bugs with a fresh look. I've heard mixed feelings on the subject though.
Yeah fair point, though at that point most of the work for the day is probably done. I guess I just assumed OP worked a decent part of the day after drinking for some reason.
This has happened several times and I usually end up with a nice snippet of code that's actually useful. Interestingly, I almost never do this while sober, or stoned. There's just something about drinking that makes me more eager to do stuff like that.
For any kind of work beyond that, though, I'm effectively useless when drunk.