DEV Community

PHP and cigars
PHP and cigars

Posted on

Is it possible to code without drugs?

I have a question for you all? Is it possible to code totally straight edge? I drink energy drinks to keep my concentration for eight hours a day? Do you even know somebody who is able to code without any drugs? No nicotine, no caffeine, no worse?

Latest comments (8)

Collapse
 
gvetri profile image
Giuseppe Vetri

I got distracted. What I do is block all notifications (Slack included). I downloaded an app called blocksite which blocks my social media apps; I tend to grab my phone an open Twitter without realizing and finally doing some exercise at the end of the day, having a good diet and sleeping more than 7 hours :)

Collapse
 
morales_eze profile image
EzeM

I used to drink four cups of coffee and energy drinks sometimes. I started taking care of my sleep and mood and I'm in 2 - 3 cups of coffee and 0 energy drinks.
It's hard to stay 'clean' tho. Specially on rough days, when the body begs for coffee and cigars.

Collapse
 
gabrielecimato profile image
Gabriele Cimato

No nicotine, no caffeine, nothing! As Heiker mentioned you need to balance your working hours with breaks. Working 8 hours straight is not good for you and it's been shown that taking breaks is absolutely beneficial to your sanity and your productivity!

Collapse
 
phpandcigars profile image
PHP and cigars

I have breaks. Nobody codes for eight ours straight.

Collapse
 
devrambeno profile image
devrambeno

I smoke, I drink coffee, energy drinks and basically anything that has caffein in it. It's not because I can't concentrate but I just like my day more with these additional elements. It's definitely bad for my health but hey, so is spending 8-15 hours a day starring at a computer screen.

Collapse
 
khauri profile image
Khauri

I haven't had a cup of coffee in 5 years, but I'm not going to pretend like I concentrate for 8 hour straight since I'm currently writing this comment instead of working.

Collapse
 
vonheikemen profile image
Heiker

I do. Me. The secret is that I don't actually code for eight hours. I take breaks.

Have you heard about the pomodoro tecnique? That's what I do.

I sometimes use this tool: gone.

Some comments may only be visible to logged-in visitors. Sign in to view all comments.