I will also say - and maybe this is more self-justification - but while I definitely cannot really do focused productive software work while stoned, I really do think that it puts me in a more creative mind-space and helps me see alternatives I wouldn't otherwise. I often go for a long hike after work and get stoned and stumble upon an approach to a work or life problem that's bouncing around in my head that I would not have otherwise.