In my experience I can code on alcohol (unless I get completely shit faced.) Weed makes me more creative and I want to code more, but I also make a lot of mistakes that I wouldn’t normally. This is why I quit cannabis, in math classes I would mess up simple things like forgetting to multiply by -1