DEV Community

Phil Walker
Phil Walker

Posted on

Depression & Anxiety in programming

I recently attended a developer retreat in beautiful Golden, Colorado and ran into something that surprised me. We were doing an ice breaker exercise and you were supposed to mention something that you were working on improving about yourself. So I mentioned that I was working on finding better ways to handle my depression and anxiety. To my surprise, the majority of the people in our little group expressed similar desires.

With World Mental Health Day being October 10th, (and it seems like these are very prevalent issues in our industry), I wanted to post here and ask: Do you suffer from depression or anxiety? If so, what are some ways that you've found help you when you're having a tough day?

Oldest comments (51)

Collapse
 
damcosset profile image
Damien Cosset

It's an important topic to talk about.

I personally never had to deal with depression, so I can only talk about dealing with a bad day. I found a great deal of comfort by reading about Stoicism. Learning that they are things outside my control, and not bothering at all about them. Many things in our jobs ( and lives ) are not completely inside our control. I try to make switch my focus inward, on things that I can control. I can't be sure that people will like my work, but I can make sure I do the best I can. If people don't like it anyway, did I do my best? If I did, there is nothing for me to worry about, I can't control those things.

Of course, easier said than done, but it's a daily practice :)

Collapse
 
cjbuckethead profile image
Charles Joseph

Any book in particular?

Collapse
 
damcosset profile image
Damien Cosset

A guide to the good life by William Irvine.

Perfect to get started with the subject.

Thread Thread
 
katarinavujcic profile image
Katarina

Thanks for sharing the link to the book and your first comment. It made me take another look at Stoicism after a few years (at first I misunderstood Stoics tbh).

I think I got it now and know how to fix some tiresome thoughts in my life.
Thank you again :)

Collapse
 
huytd profile image
Huy Tr.

I ran into depression when I got so many things in mind (side projects ideas, girl friends, wife, books to read,...) but I don't have time for them all. What I did to get out of depression is to hold them back all, and just focus on one thing that matter at a time. Anyway, it doesn't easy as it sound.

Collapse
 
rapidnerd profile image
George

I've suffered from depression and anxiety for a little over 9 years now, it's been a journey of a life time. Development is what has really helped me the most to cope with it, just having this little area to have where I can do what I like with and nobody can stop me feels amazing. In addition my friends are always there to cheer me up.

Collapse
 
ben profile image
Ben Halpern

I've never gotten any strict diagnosis, but I have anxiety issues and some other issues. I'd like to eventually learn more about these things, but I've always managed it well. I'm very fortunate to work with people who appreciate what I'm good at and give me the leash to cope with things in the ways I need to. I'm not sure I'd be doing this well in a different environment.

I think of @greggyb 's talks as the canonical source of awesome discourse on the subject in our industry.

Collapse
 
_bigblind profile image
Frederik ๐Ÿ‘จโ€๐Ÿ’ปโžก๏ธ๐ŸŒ Creemers

If I could, I'd give your post over 9000 hearts, and this video over 9000 likes, because I think you've just given me a huge pointer in the right direction.

Collapse
 
jdhillen profile image
J.D. Hillen

I've struggled with this exact thing for years. I have been medicated for ADD since college. But over the last few years something has slowly changed in my personality and I could never put my finger on what it was.

I started out just listening to this on my second monitor. But 10 minutes in I stopped working all together and really paid attention. Every point Greg made hit way to close to home.

Watching this presentation gave me the confidence to talk to my wife about what is going on. I showed her this video first because I could never articulate what was going on in my head the same way Greg did.

Because of this post, I'm taking steps to make my world better.

Thank you for sharing this Ben!

Collapse
 
leslieongit profile image
Leslie

Ben you're a lifesaver, God bless you, I've been there and still there, sometimes I ask myself why i was born, is this how I'm supposed to live and I sleep till 12pm on Saturdays or when on leave from work. I've struggled copying with relationships and I felt like I was toxic but I always got along with my software friends and they nag so we can go out and have a drink or something, it's weird I never feel so when I've had a couple drinks, I totally change and become a different person. Thanks again for the video.

Collapse
 
djoleb profile image
Djordje Bajic

When i hit the bottom, i start to listen Elliott Smith.

Those who listen to him know what i talk about. :)

Collapse
 
snoopjedi profile image
James Gerity • Edited

Keep openly discussing it! (where comfortable) You never know who is struggling with the same emotions, and you might surprise someone else in the same way by indicating that not only is it okay to have these discussions earnestly, it's something we should strive for!

Collapse
 
preciselyalyss profile image
Alyss ๐Ÿ’œ

I suffer from depression, generalized anxiety, and PTSD. The biggest improvement has been regular therapy, but also recognizing unhealthy behaviors and being willing to change them. The hardest one and the one I'm being a little more active to improve on is self-compassion. It is so easy to say "why do I have to be anxious about this?", "why didn't I get that done or why haven't I worked on it more". It is harder to be as forgiving and kind to yourself as you might be to your friends.

Collapse
 
miniharryc profile image
Harold Combs

I much appreciate your honesty here. I really like the "be as forgiving and kind to yourself as you might be to your friends."

Collapse
 
zak profile image
ZakG • Edited

Ive been dealing with anxiety for about 5 years now and my mantra has become "One thing at a time." I don't care how long the to do list is; one thing at a time. It also helps to remind myself that most situations have only a handful of realistic outcomes. That outcome may suck, and it may hurt for a while, but eventually it'll be forgotten.

Collapse
 
ggggbbybby profile image
Rebecca G

I had a talk with my boss about this pretty recently, since I've been struggling with depression and panic attacks for the last couple years and only recently got help. My biggest tip is to go to therapy, take your meds, and go easy on yourself. It's really easy to see depression as a personal failing, when it's a medical problem the same way the flu or a broken leg is - it's not something you can just push through without hurting yourself more in the process!

When I feel overwhelmed, I take a second or a minute or an hour and just breathe. Sometimes that's enough, and I can put things in perspective and not break down. Sometimes it's not and I end up crying in the bathroom, and that's a good time to reset and reach out and say "I'm having trouble with this and I need some help, do you have 10 minutes to talk through X?" Asking my coworkers for help is hard, but they have a neutral perspective that is invaluable, and generally that's enough to reset my brain and let me focus on my work again.

Another thing that can help is changing what you're working on - I wasn't feeling good about my engineering work so I switched to the QE team, where I'm learning an entirely new skillset and still working on problems I care about. A change in surroundings can make a big difference!

Collapse
 
asynccrazy profile image
Sumant H Natkar

I guess stress gets introduced into picture when we are expected to meet some deadline, the best way to handle stress is to switch off from work when we are outside office, although it's not easy as it sounds.

I try to listen to some audio books which are not at all connected to programming or computers when I travel to and fro from work.

Also spending time with your loved ones also reduces stress.

Exercise is another stress buster, I am not saying you hit the gym every week, but walking for at least 40-45 mins per day is really good for you.

Anxiety is a complete different ball game altogether and it comes from the fact that, you don't know what exactly is going to happen in future, and if the circumstances are going to be under your control.

Best way to avoid anxiety is to ignore it and try to live in present rather than caring about what will happen in future or giving a damn about what has happened in past, I use the same rule.

Collapse
 
nikkitaftw profile image
Sara Vieira ๐ŸŽ‰ • Edited

This is such an important topic that many people don't talk about enough !
In terms of depression I never had severe problems with it I've had it but in combination with anxiety.
About anxiety I have been battling with a panic disorder for about 5 years now and the best advice I can give anyone is to seek help, I didn't untill last year and had a mental breakdown because of the stress and the underlying problem I wasn't treating.
Please get help, you don't have to live like this, this is something that took me 4 years to understand and when I finally did it changed my life.
I went to a therapist and stuck to my medication and I am completely different person now, I don't live in fear and constant anxiety.
Once you start treating it and sticking to your medication you will feel free.
Also this may sound really cheesy but meditation actually helps when you feel overwhelmed, there is a free app called aware that you should check out if you have these issues.
If anyone is battling this my DM is always open!

Collapse
 
yamilquery profile image
Yamil Dรญaz Aguirre

Thank you for your words, I really appreciate it!

Collapse
 
mikkpr profile image
Mikk Pristavka

This is an important topic I think about quite a bit.

I suffer from generalized anxiety and bouts of depression. After trying to deny it or trying to find external causes to my problems I got help (therapy and meds) and am now feeling like I'm more in control. It doesn't seem like it's something that will eventually just go away, but rather I'm learning to control how and when it is affecting me. Talking about how I feel was difficult at first, but it has become an important way to "garbage collect" all negative thoughts. Mindfulness, meditation, journaling and exercising all help a lot. Basically, all sorts of methods to focus your thoughts help โ€” writing code fits the bill as well, so maybe that's the reason why this profession appeals to me. To an extent, being physically healthier will also help you be mentally healthier.

I am also learning to turn my anxiety and fear of failure into a strength โ€” it drives me to be extra meticulous, think ahead and not make rash decisions.

Professionally, it helps me write readable, modular and testable code, constantly think of possible refactoring opportunities and ways to improve the codebase in general. As I find it difficult to keep large ideas in my head, functional programming is something that appeals to me a lot โ€” the idea of composing small ideas to express larger ones also applies to my thinking process as well as to the code I write.

Personally, it drives me to seek ways to use my free time most efficiently โ€” fearing to forget important things, I keep a journal with various task lists on all my devices. Also keeping a physical journal is a kind of ritual to internalize good habits and record positive thoughts. For me, the Bullet Journal system works very well for both taking notes and keeping track of things I need to do.

TL;DR โ€” it's really important to talk or at least write about your problems, even just for yourself. Try finding ways to focus your thoughts and not let them overwhelm you. Music, white noise, meditation, whatever works. Excercise, drink water, eat well and sleep well. All of these things help you rewire your brain to work with you, not against you.

Collapse
 
bgadrian profile image
Adrian B.G.

I sincerely didn't though of these problems in our field. I develop ๐ŸŒƒ and day as a passion and job, but I'll watch this thread, maybe I missed problems in my peers and I can fix them in the future.

Collapse
 
miniharryc profile image
Harold Combs

Yep. Anxiety checking-in.

If so, what are some ways that you've found help you when you're having a tough day?

Boiling it down:

  • Meds
  • Structure
  • Friends

Let's start with friends. Anxiety gives you this distorted view of reality...you see things as hyper-important that....aren't. You need people you trust who you can be your literal "reality check" similar to the way John Nash would ask, "Do you see that person standing there?" in A Beautiful Mind.

Second is structure. My particular bend on things is driven around the unknown...I get hyper-anxious when things just fly at me. Let's take a typical day at the office: I can come in at 8 or at 10. Both are acceptable. If I come in at 10, I guarantee I'm an anxious wreck because I have to start "sprinting" to keep up with the events flying at me: email, social interactions, work meetings.

Contrast: Eight o'clock. Open floorplan is quiet. I can deal with backlog email and set-up my structure for the day. Much easier to accept that sort of day.

Last...beyond a certain point, it's clinical. You can throw all the friends and structure at it you want; it won't help. You'll need to chemically balance your brain, with a doctor's supervision.

In my experience, therapy can give you some tools to deal with it, but even my last therapist was like, "We need something to get you past this hump you keep sliding down." He was quite correct, and the last 3 years have been better than the preceding 30.

Collapse
 
stefannibrasil profile image
Stefanni Brasil

yes, I've been depressed for years and this year I started finally to do therapy. that was simply the best thing I did this year. today I do yoga, meditation, do more exercising, etc. I think this helps me.

Good luck, hope you are treating your anxiety. Nobody deserves to suffer alone! the best :)