DEV Community

Coding and Cannabis

Damien Cosset on April 22, 2019

Cannabis and coding I just watched a documentary called Grass is Greener on Netflix. It talks about may things surrounding cannabis. How...
Collapse
 
peter profile image
Peter Kim Frank • Edited

I've heard the phrase "Think high, work sober" and I basically agree with the premise.

If you're on a deadline or have to immediately release production-ready code, it's probably not a good idea to put yourself into a state of "impairment" before working. You should be as clear as possible to do your best and most diligent work.

However, if you're merely thinking through an issue or approach, changing your perspective and mind-space might put you into a more creative flow. It's likely that you'll make connections or go down a different path than you would have otherwise. This is ideal when you're on your "own time" and have the time to implement any ideas you might have later.

Collapse
 
therealkevinard profile image
Kevin Ard

I did the "think high" thing quite a bit when I was younger. I'm not much of a smoker these days, but I appreciate how it "trained" my brain. Not long ago, I was watching how the water flows in a creek - just zoned out on it. I got back to my desk and refactored a massive golang backend into 4 micros tethered by rabbit topics that can hold up to any chaos monkey.

From watching the water.

It's the same way things would click in my think high days, and it still happens pretty often - what, 15-20 years later.

Collapse
 
jackharner profile image
Jack Harner 🚀 • Edited

The biggest advantage for me is the ability to hyper focus on one thing at a time. It helps me lock in and get into Flow easier. One of those skills I've developed over the years is getting stoned, and then immediately jump into a task, not allowing myself any time to get distracted. You've got to actively work towards not being the "Lazy Stoner"

Most recent issue I had was one night I was working on a project, fixing things adding features, etc only to find at the end of the night that I forgot to git pull in work I'd already done and every single merge conflict was essentially the exact same work I just did.

P.S.

My smoking is on my time working on my projects, not at work, for obvious reasons.

Collapse
 
bennypowers profile image
Benny Powers 🇮🇱🇨🇦

Some of the most prolific thinkers and doers of the past century were users. Carl Sagan was a user, Bob Marley was a user, heck - Queen Victoria was a user.

If you can produce while using, it's between you and yourself.

If you can't produce while using, you probably shouldn't use while working.

Not sure it has to be more complicated than that...

If you live in a jurisdiction where it's legal, and you have no contractual obligations, and you want to find out whether or not it's good for your productivity or creativity, you probably shouldn't show up to work high for the first time. Instead, experiment on your own time (with plenty of buffer before you need to get back to the office).

Don't do anything to risk legal trouble.

Collapse
 
damcosset profile image
Damien Cosset

Didn't know Carl Sagan was a user :o

Thank you for your input.

Collapse
 
bennypowers profile image
Benny Powers 🇮🇱🇨🇦

He wrote a pro-cannabis paper under the pseudonym "Mr. X" in the late 60s.

bigthink.com/mind-brain/carl-sagan...

Collapse
 
drbearhands profile image
DrBearhands

I'll try it for science.

Collapse
 
damcosset profile image
Damien Cosset

My man! 💪🤟

Collapse
 
drbearhands profile image
DrBearhands

So I did, and it was pretty much in line with my expectations for a downer. Great for drowning out distracting and stressful thoughts, so I can see why it would help with creative tasks that require more 'feeling' than reasoning as it can really help get into the zone.

As for my particular situation, I was having trouble getting Tensorflow to work with Haskell on a Jupyter Notebook. Thanks to a more relaxed state of mind I managed to dive far deeper into the problem than I normally would have as it didn't stress me out as much. However, I did not actually manage to fix it, and I think it may just be practically impossible due to conflicting version requirements. In a sober state I would have given up sooner, and thus wasted less time.

Thread Thread
 
drbearhands profile image
DrBearhands

I forgot some details:

  • using is legal where I live
  • I don't smoke so I made brownies, heating butter with weed in a bain marie for 2 hours to ensure an even distribution.
  • Used about 1/4 g, type similar to white widow.
  • I've used weed twice before in my life and tend to have strong reactions to mind-altering substances (alcohol, caffeine, antidepressants, ...)
Collapse
 
ozzyogkush profile image
Derek Rosenzweig

Yes, and it usually helps, but not all the time. A little bit can help you relax and think clearer, but too much can make it harder to concentrate. Depends on the strain and a bunch of variables. Definitely doesn't help for meetings.

It also depends how familiar you are with the domain - if it's new ground, a clearer head is probably better. If you're doing stuff you're pretty familiar with, it shouldn't be a detriment. Keep in mind that you'd get basically the same effect as going for a run on your lunch break - the 'runners high' is caused by endocannabinoids like anandamide (which acts like Delta-9 THC on the CB1 and CB2 receptors).

I know people, coworkers, etc who can have a beer or two if we go out to lunch and still be able to work, but personally I hate combining alcohol and coding. Weed though, hell yeah.

Collapse
 
damcosset profile image
Damien Cosset • Edited

Please keep the comments related to the question I asked in the article :) Thank you.

NB: I was not making any scientific claims about cannabis. I was simply recapitulating some of the content of the documentary. These are not my views. But I thought I made that clear enough in my article.

Collapse
 
robertpoole23t8x profile image
RobertPoole23t8X • Edited

I am not sure if we can actually consider cannabis benefiting our health. But I've tried CBD oil, and it helps me during a headache and insomnia. I've tried different medications, but only CBD could help me. The more I read reviews of CBD, the more I feel confident that it actually works, and not just a placebo effect. Now, I only use CBD oil, and I even found some vape pens with CBD oil on knockoutcbd.com and ordered a few samples there. I cannot wait for them to be delivered, and finally, try them.

Thread Thread
 
saleenatp profile image
saleena tp

A range of CBD products are used in health solutions. A further product list of CBD possible contamination from heavy metals or chemicals, such as residual solvents. CBD company websites. I observe a dispensary near me available so potential buyers can check out a product before making their purchase. These are best for headache and insomnia.

Collapse
 
niorad profile image
Antonio Radovcic

I was gonna write a class, but then I got high.
I was gonna git-rebase, but then I got high.
Now the build is failin' and I know why.
Because I got high.
Because I got high.
Because I got high.

Collapse
 
gazhayes profile image
G

I don't know if in reality it helps or not, I haven't ever tried to look at this objectively, maybe I should. But it definitely feels like it helps to see things from a different angle, a broader perspective. More of a 'meta' tool to think not only about what approaches to use to solve a particular problem, but also whether that is a legitimate problem or not (maybe there's something I'm missing), and also whether this is the particular problem you should be solving right now - is it actually in the critical path (and the critical path to what)?

Collapse
 
sedx876 profile image
sedx876

Personally, I medicate at night before bed so I can get a full night's sleep so I can code and be more productive during the day. Although I will say when I was learning JS I did an experiment one day. I took a few tokes and dived into my lessons. Javascript made more sense that day. I think it is for the simple reason that THC makes new and different neuron connections that your brain doesnt make when it is "sober". But as with everything...all things in moderation.

Collapse
 
n873 profile image
Nathan Joseph Alard

Depends on the strain and amount being consumed: Sativa vs Indica | Micro-dosing vs Macro-dosing

Micro-dosing increases productivity, and motivation while planning, designing and coding.
Environment & personality-type plays major roles when macro-dosing.

Collapse
 
albertogarrido profile image
Alberto Garrido

I'm not a frecuent user and I've never coded high, although I might try one day in a side project and see what happens. But I wouldn't do it ever on my job. Mostly because it's unpredictable what can happen.

I played challenging videogames (souls, sekiro, cuphead) high and felt that I did better (after later seeing the video) so it might be also good for some coding tasks.

Collapse
 
elijahbless4 profile image
ElijahBless4

The best for that moment you are stuck in a code.
Helps you to look thing from another perspective and think only in that thing without nothing to worry about.
Its like your personal mind helper.
We are artist we need some extra inspiration sometimes.

Collapse
 
francis77198756 profile image
Francis

I see it this way, coding while drinking a beer or smoking weed is the same thing. The premise in my view is that it allows you to take small breaks and relax during the session, increasing productivity. It doesn't make you a better coder, it just helps stay relaxed making you think better and solve issues related to logic faster.

Collapse
 
baronbeans profile image
Sean Barnard

I was working on a personal project recently, had been struggling for a few days with something and just could not get it to work.

Had a pretty heavy smoke session with my mates one night and basically went to bed and dreamed about the code I had been staring at for a week... and I spotted the issue.

I woke up and thought "that can't be it, there's no way I can have just dreamed that", but when I turned on my laptop and made the change everything worked as it should!

I'm a strong believer that weed isn't an impairment like some people in this thread are saying, but actually helps me unlock a part of my brain which is very useful in my line of work.

Collapse
 
massiveattack89 profile image
MassiveAttack89 • Edited

Some times when you are high you can have a nice idea, it's like brain is thinking through another point of view. Most difficult is to save that idea on the next day. I had memory problems for years and because of that lack of focus was also a problem. There are different ways to make it better. baeys.com is a good answer because they are drug free and have cbd oil that works against depression and sleep problems also. Many benefits. You can check YouTube - it’s full of videos about it. Many states open new stores and stuff.

Collapse
 
bigtrigg1967 profile image
Esther Moe

Every time he legal age cbd south carolina appears, it is always when the country s survival is in danger. The legal age to purchase cbd oil in south carolina.

Collapse
 
juliakuldorova profile image
James

I lived & worked in Silicon Valley since before it got that name, so I can offer an insight here. The SF Bay Area was the center of the Summer of Love in '67. The whole culture here still has that legacy. The more laid back hippies moved north, the more industrious hippies moved technology & innovation here. Steve Jobs & Wozniak were typical residents. BTW, medical marijuana use is overwhelmed by street pot. People here enjoy their lives!
Indica flower

Collapse
 
kammillotos profile image
kammillotos

Cannabis is widely used in almost all world nowadays. Some people use it in medical purposes, some people just prefer to smoke weed to relax. it is very good thing to reduce stress, calm down and relieve symptoms of anxiety. But if you want to try smoking weed, you should choose the most suitable strain for you! For coding I like Ace Killer OG Strain, here on askgrowers.com/strains/ace-killer-... you can read detailed review about it and other variants.

Collapse
 
johnyyy12 profile image
johnyyy12 • Edited

Hello, if to be sincere, I didn't notice something different if compared to your normal state of mind, the only thing I noticed is the fact that your brain starts to slow down, you feel more relaxed, and it is pretty hard to work in such an atmosphere. You can try some CBD oils, because they have different effects on your health. Actually you can find more on urbanaroma.com/how-to-find-weed-in... . It is one of the best websites related to CBD products, and you can learn a lot of new things here.

Collapse
 
juliakuldorova profile image
James • Edited

In fact, I'm of the opinion that you have to be really sober at work. Cannabis affects me in such a way that I just relax and do not want to do anything. That is, if I decide to smoke before work, then this will simply be my last active action. After that, I will just watch over some things or lie in bed and think about something incomprehensible. So for me this option is simply swept aside. cbd gummies for pain

Collapse
 
mikecosner11 profile image
Mike Cosner • Edited

I think cannabis is very good for mental work. Again, it is and only for mental work, not for physical work. When you're under the influence, your horizons naturally increase and the number of ideas that can come into your head increases several times over, at a minimum. But here, the main thing is not to get carried away. If one observes the boundary between the quantity of ideas and the quality of their implementation. I have learned how to balance. If there is a lack of ideas, then I use and the number of ideas increases like a snowball. But when it is necessary to implement them, I work absolutely sober to be as focused and attentive as possible. So I recommend the website why people use tetrahydrocannabinol in the USA !)

Collapse
 
saleenatp profile image
saleena tp

CBD products have been using in health related solutions. A further product list of CBD possible contamination from heavy metals or chemicals, such as residual solvents. CBD company websites. I observe a dispensary near me available so potential buyers can check out a product before making their purchase.

Collapse
 
oscarfigueroa231 profile image
OscarFigueroa231 • Edited

CBD and THC oils treat different diseases, but I don't think you should use these oils without any doctor's recommendation. When I had insomnia, my doctor recommended a special CBD oil made to treat insomnia problems and can be bought only in Dispensary Edmonton ALBERTA. As far as I know, each oil is made exactly for a specific disease, and you won't be able to treat insomnia with CBD oil for treating diseases like anxiety or depression. The dose and concentration are different.