DEV Community

Cover image for On Dealing with Anxiety and Depression as a Developer

On Dealing with Anxiety and Depression as a Developer

Michael Scott Hertzberg on September 01, 2018

UPDATE NOV/18: Follow up video I've suffered from depression and social anxiety disorder since I was a teenager. I've gone through several phases ...
Collapse
 
jeremy profile image
Jeremy Schuurmans

Thank you for writing this. Anxiety and depression have been a struggle for me as well. Programming has helped me through it in so many ways, but not completely, and it’s comforting to read that I’m not alone in this experience.

Collapse
 
ben profile image
Ben Halpern

As I start to breathe better, be less anxious, really combat my depression and stay busy, I start to realize that I'm in control. Not the anxiety or depression.

That's a beautiful thing to read

Collapse
 
yucer profile image
yucer • Edited

Some stuff to test in those cases:

  • Improve your diet (Eat vegetables, reduce the amount of daily sugar, coffee and stimulant substances). Try to get more knowledge about healthy nutrition.

  • Make exercises.

  • Sleep well and enough (google for: Sleep trick and tips).

  • Check your work ergonomics. Take breaks in the working sessions (I use Workrave other people just drink water enough so your bladder remember you to take the rest and go to the bath)

  • Improve your concentration capability (prepare the workplace, google for "Concentration techniques" to find more....)

  • Organize your work and plan it (You can use GTD tools like GTG, Outlook or Thunderbird tasks, Trello, etc.) Give you rewards for the achievements.

  • Try always to improve your estimation so you don't underestimate the effort and take a commitment for unrealistic deadlines. Some times the one that underestimate the complexity, is the stakeholder that think you just have to put a new button and that is easy.

One tip is thinking about the coding tasks that needed more time in the previous works, analyze why and estimate if those factors will affect you the next time.

  • Socialize with your workmates, or anyone you have the opportunity.

  • Look for a hobby, or a second income activity. If your life depends on a single strategy, you can be affected by the fear of "What if I fail ?"

  • Don't work on Sundays !

I have focused most on some activities that give us more productivity, remembering this quote of HARLAN MILLS:

Mankind, under the grace of God, hungers for spiritual peace, esthetic achievements, family security, justice, and liberty, none directly satisfied by industrial productivity. But productivity allows the sharing of the plentiful rather than fighting over scarcity; it provides time for spiritual, esthetic, and family matters. It allows society to delegate special skills to institutions of religion, justice, and the preservation of liberty.

If after all of this you still have anxiety, then look for a psychiatrist.

If you don't have medical coverage, then go to religion. Most of the religions have thousands of years of experience helping people to reach the spiritual peace.

Collapse
 
iguza profile image
Yoghaswara Nugroho • Edited

I usually take a glass of tumeric milk or lavender tea,it work good for anxiety attack but make you sleepy.

Collapse
 
revskill10 profile image
Truong Hoang Dung • Edited

I love my working room from home. Many oxy to have deep breath !

Collapse
 
lynnewritescode profile image
Lynne Finnigan • Edited

Great article. I suffer from anxiety and depression, it's a vicious cycle. A difficult thing for me can be concentrating and focusing at work when your brain just doesn't want to code! And trying to explain/justify your time and why things are taking longer than usual is tricky - causing more anxiety.

Collapse
 
balazsbotond profile image
Botond Balázs

Great article. It takes a lot of courage to write about this topic. I saw this fantastic talk about coping with mental illness by Sara Vierra at a conference this year which might be helpful: youtube.com/watch?v=G2YXQLhdT3k

Collapse
 
smclallen profile image
Shelly M

I'm so glad you wrote this! I've been struggling with deep depression and fibromyalgia for 30 years. It's easier now with all the practice I've had! But it has interfered with my career so that I now rely on disability and I code as a way to keep my sanity and hope alive. Programming takes so much concentration that it provides an escape from both my painful thoughts of self-doubt and my physical pain.
I especially appreciate your willingness to share your experience. I know many would keep it private to avoid stigma. I kept mine private for a long time but over the past 2 years I've learned to share it with practically everyone around me. The biggest surprise about my opening up is that there hasn't been single negative consequence and I've found a few others suffering as well. We now commiserate together and share coping strategies! I'm very happy that breathing works for you! Singing helps me, I think because it forces me to breathe and it's a very social group effort. Anyway Thank You!

Collapse
 
mshertzberg profile image
Michael Scott Hertzberg

Hi Shelly,

This deeply reminds me of Brené Brown. She did an incredibly powerful and viral TED talk about the power of vulnerability:

ted.com/talks/brene_brown_on_vulne...

I'm sorry about what you're dealing with. I as well have a friend who suffers from both depression and fibromyalgia. They are both indeed debilitating and support from others is extremely valuable.

As long as everyone finds what their best coping skills are, that's what really matters. I'm glad that you have your set of coping skills to get by, and I know that it can be hard sometimes when the coping skills can't come into action. That is the sine wave of all of this. The ups and downs. But there's also the recognition and radical acceptance that there indeed will be both ups and downs.

Collapse
 
ferricoxide profile image
Thomas H Jones II

While depression supposedly isn't as common in men as women, it seems like its prevalence is over-represented in the tech field.

I've been lucky enough to have been dealing with endogenous depression and overall anhedonia since I was a toddler (wish I was exaggerating). In all that time (I'm 48, now), never found any chemical fixative that worked for me. Even if one didn't turn me into a zombie and would manage to start making me feel less at the bottom of a well, that's when the other side-effects you didn't previously notice would start to rear their head. Worse, the personality changes from the drugs always contributed to that "who am I" feeling &mdash, that whole "are these my thoughts/emotions or the drugs'?" I also tried talk-therapy for a number of years with a few different practitioners. Was never really convinced that it did much more than blunt some of the bottoming out.

On the plus side, it all helped to really develop and keen edge of sardonicism to my personality. And, all those efforts at trying to find something that provided a spark to life meant that I forced myself to experience a lot of things that few of my peers have or likely ever will. All that time spent trying to keep my mind too busy to let the demons have unfettered access to their playground also meant I've done fairly well, professionally (even if the work/life balance is comically off-kilter). I'm also lucky enough to have come through it all realizing that, while I have depression (it's a part of me), it doesn't define me). In some cases, these kinds of things are the best you can hope for.

While I don't wish anything similar on anyone — not even my worst enemies —, reading posts like this do provide a bit of salve. There's a measure of solace in knowing that what we feel isn't as singular as it sometimes seems.

Collapse
 
jfrankcarr profile image
Frank Carr

Question for you. How have you been able to avoid having unsympathetic, maybe even toxic, managers put you on a dreaded "Performance Improvement Plan" when your anxiety and depression have pushed you to the edge?

While taking an action like this is often questionable under ADA, it is difficult to find an employment attorney who will take a mental health case. Plus, suing a current or former employer for an ADA violation could have career limiting potential.

Collapse
 
mshertzberg profile image
Michael Scott Hertzberg • Edited

Hi Frank,

To be honest, I've had to leave a job at a very well known company — where I really wanted to work— and I had an unfortunate experience because of an unsympathetic manager. He wanted my butt in that seat everyday. I had to leave. I would encourage that you do what's healthy for you.

Collapse
 
pabiforbes profile image
Pabi Moloi, but Forbes

Hey Micheal,

I did the same too. The company I was at was a great learning environment for me, but because of the unsympathetic manager, I decided to leave too as it had started to not only affect me mentally, but physically too. It took a lot of courage for me to take the leap since I am a female in tech, and I was fresh out of varsity.

I would also encourage Frank to put his health first. :)

Collapse
 
rapidnerd profile image
George

Beautiful article, after dealing with both of these for extensive lengths of time I finally found that programming was a calling I needed. A place to escape, keep my mind busy and have fun while doing it. It's helped me in so many different ways from just changing my outlook on how I see things to being able to solve some of the problems that came into the mind while dealing with these.

If you feel that you are at risk of harming yourself or know someone that is at risk of harming themselves, do not delay in seeking help

Speaking to someone is one of the best and scariest things you can do while going through depression and/or axiety. Whether it may be someone you know or related to or just a complete stranger the feeling of finally being able to get out all your issues, feelings and having someone there to genuinely listen and help you, well there's no better feeling.

Thank you for making this article Michael, I'm sure it will help a lot of people.

Collapse
 
jimsy profile image
James Harton

Thanks for this great post. It's a subject that I also care about an awful lot. It might also be worth mentioning that OSMI provides some great resources for helping deal with mental health issues in the tech industry.

Collapse
 
umesh1134 profile image
Umesh Kumar

Social anxiety and depression combo are worst. I face that every day.

Collapse
 
__gower profile image
James Gower

Thank you for this. It sounds strange, but i'm sort of glad that i'm not alone in this battle. Hope all stays well for you mate.

Collapse
 
fardinhakimi profile image
Fardin Hakimi

I am also battling with anxiety and depression.

One thing that has really helped me has been joining a gym, working out everyday considerably lowers my anxiety level.

Collapse
 
albertico88 profile image
Alberto Grau

Thank you for sharing.

Collapse
 
antonrich profile image
Anton • Edited

I went to your website and noticed in the title that it says JS slave.

I think you are kidding. In Russian there is a saying that every joke has a truth to it. In that case there is probably some truth in that.

I mention this because it could be the source of depression.

There are different reasons why people have depression.
Can you say that yours relates to the views you have?

What I mean by this. Do you think that you have to slave as JS developer just get by in life.

Collapse
 
mshertzberg profile image
Michael Scott Hertzberg

I am kidding. Yes. However, it does have some truth. JavaScript has the most power and we're slaves to it in a way. Only JavaScript can work in the browser and we have to abide by that.

Collapse
 
sci_tec profile image
homo-cyber sapiens

right as i was about to post something here on the theme i saw this, call that opportunity serendipity. i always strive to see viewpoints on the subject by real people with real problems specially by those on tech and related areas, not practitioners or third-party interposed agents that think but really don't have a clue, to get a first-person inside view on the recurrent propensity by above avg people to depression

i also posted on the subject elsewhere and was glad to see your approach on this

Collapse
 
robertswilley profile image
Robert Swilley

I have dealt with terrible anxiety my whole life and some mild depression from the anxiety. The book When Panic Attacks was a game changer for me.

There is no magic cure, but it really changed my perspective. I would definitely recommend it to anyone suffering from any type of anxiety.

Collapse
 
doraemonleaf profile image
Aeromania • Edited

This was a great read. One thing that I could also recommend is meditation. I recently started meditating and find that it can really help with anything that you might find stressful or overwhelming.

What’s more, there are quite a few meditation apps out there now, which can be a great starting point. I like using Insight Timer in particular because it has a lot of different types of meditations that guide you through the process.

Give it a try and you could be surprised at the difference it makes!

Collapse
 
ajitkamath profile image
Ajit Kamath

This really sums up to what I go through most of the days in my life.
It's comforting to know that this is a real thing.

Collapse
 
mshertzberg profile image
Michael Scott Hertzberg

thank you everyone for the responses. it means a lot to me.

Collapse
 
justageek profile image
Brian Smith

I cannot overstate being outdoors every day, especially for some amount of natural sunlight. Also, being in the woods as much as possible has been life changing for me.

I also loved this book, it might not resonate with everyone, but it is worth a look:

amazon.com/Letting-David-Hawkins-M...

Collapse
 
crystalspiegelmacher profile image
CrystalSpiegelmacher

While this is all well and good, I think it's important to realize some of this is stopgap stuff. The shy, frightened kid, the awkward, bashful teen, the socially anxious young adult. That isn't you in the past, that's you in the always.

Relics of those past yous still exist, as shards of sentience in your subconscious. Perhaps suppressed. You have to engage with them. Make deals with them. "I will go to work all week, if you forgive, and let go of, that one thing."

Developers can get so hyper-logical, sometimes as a coping mechanism, which can leave you very physically clenched and emotionally tangled. That's unhealthy. I think its good to accept that your psychological existence is inexplicable. Almost magical, if you will.

Sometimes awareness feels like the isometric cube doodle, that flip-flops between pointing one way or the other. Awareness can flip-flop instantly from rational to fearful. You gain mastery of that teetering by knowing who you are, which is the foundation of self-confidence.

I think working on your psychology, bravely, is an important long term goal, just as incumbent upon you as a career, and you can do both.

Collapse
 
breno profile image
Breno

To me when you say "stay busy" is more about the meaning of contributing to society in something or helping someone directly, and that helps a lot. Congratulations on having exposed this topic. It is a very slow process of recovery, but we can recover our mood with some medicines and mainly taking care of itself spiritually and physically.

btw: I love this movie!

Collapse
 
vimmer9 profile image
Damir Franusic

It's always good to know you're not alone, and is also one of the reasons I decided to write mostly non technical articles. I also have a myriad of issues, social anxiety being of them and complete lack of self esteem the other. It's sometimes so severe that I question my every move and even though I did something right I still can't shake that gut feeling that I must have done something wrong. Some would classify this as an impostor syndrome, but I know that this goes way back to elementary school, but I am not going to go into detsils here. I also have epilepsy but fortunately enough, I only had one foamy shaker 😉 20 years ago. The medications I take is a 2 pill combo, one is primarily to supress seizures while the other is used for bipolar disorders and epilepsy. The good thing is that my anxiety is under control when I take these, otherwise I would get panic attacks and 💩 would hit the fan.

I still have to find a way to combat the lack of interest which sometimes happens mid-project and it's a pain. I feel catatonic and cannot seem to able to continue my work no matter what. IT sector is riddled with mental issues but most of the affected people still hide it and are not willing to admit it.

Thank you for your article,
DF

Collapse
 
rickzonumali profile image
Sean Damien Umali • Edited

I started developing depression back in 2012 when I graduated from college and couldn't land a career as a draftsman. After two years of trying not not get anything I gave up drafting and got into web development. I've been developing websites since 2014 when I learned about it and signed up with codecademy. I still suffer from anxiety and depression. When my head is spinning or my anxiety is acting up I use it to practice coding.

Collapse
 
atearjen profile image
Allison

Thank you for posting this! This really resonated with me.

Collapse
 
akiramakes profile image
Akira

This is fantastic. I'm just getting into the field and I know this is an issue for me and many others. I really appreciate the pragmatic resources in this article.

Collapse
 
cyberomancer profile image
CYBEROMANCER

I feel like we’re ignoring a big factor that contributes to this. Companies overstepping boundaries and suggesting crunch. If I am depressed by coding the last thing I want to do is code more.