Don't get me wrong; I don't refuse to contemplate the negative effects of cannabis, of which quite a few have been hypothesized, some observed. When I said "alcohol is probably much worse than weed," I didn't say "weed is a free lunch." Just want to make sure I'm clear on that.
There are cannabinoid receptors in the brain (and other organs). Our current understanding of them is far from complete, and we know that smoking weed habitually will reregulate them, and not necessarily for the better. I'm not one of those hippy-dippy types who thinks there are no ramifications involved in smoking weed.
I would say that your current experience with programming is probably more a reflection on how much what you are programming actually interests you. You might be able to think of programming like painting; maybe you are painting a picket fence and find it to be the most boring thing in the world, or maybe you are painting a bunch of robots blowing each other up on a canvas. Some programming is dull and tedious, some programming is exciting and vibrant. Some people just don't like painting, and prefer pottery.
Can weed help? That seems plausible to me. Weed can make a shitty movie seem better, maybe it can help you enjoy your programming work more.
If you want to try that out, I recommend a sativa strain, not indica.
I started out as a [web and print] designer in my late teens and was stoned all the time. It seemed like a dream to me - stoned and productive. As I moved into programming in my early twenties, I found myself completely unproductive when high. Very much akin to reading a book while very stoned, where I'd find myself reading the same page for a while, and then while trying to focus, read the same sentence 20 times and realize I haven't comprehended a thing. My attention span wanders far too much. And now, about 15 years into my profession as a programmer, any more than the smallest toke will make me completely incapable of coding effectively (though I can generally think programming problems through just fine).
As a comparison, I've programmed drunk plenty of times. These days, after a couple whiskeys, I'm fairly useless - although I think that's more a case of "I'd rather relax than work" over being incapacitated.
I never tried drunk, but I doubt it would work for me.
Weak 10% ABV wine would be 20 units. Normal 12.5% ABV would be 25 units. Strong 15% ABV wine would be 30 units.
UK advice is no more than 3 to 4 units per day for men, with a couple of days free of alcohol and no "saving up" of units for a binge. (The old advice was 21 units per week for men.)
http://www.nhs.uk/livewell/alcohol/Pages/Alcoholhome.aspx
Drinking above that limit long term has some health consequences
http://www.nhs.uk/Livewell/alcohol/Pages/Effectsofalcohol.as...
Problem drinking has several definitions, but NICE recommend assisted withdrawal at 30 units per day. (15 to 20 per day if there are co morbid severe mental health problems).
I don't care if people use cannabis (and I am strongly in favour of legalisation) but I fucking hate the refusal of many cannabis users to even contemplate any negative effects of cannabis.