The Impact of Learning to Code on Mental Health
I’m no longer ashamed of the fact that I first came to learn to code at the darkest point in my life.
For other people, perhaps going through similarly dark times, pandemic related or otherwise, I wanted to share how learning to code pulled me out of a difficult place.
Frequent Small Wins
The thing that lead me to Google “learn coding free online” was a few weeks of continuous gaming. Now I am absolutely not a gamer! I was playing Super Mario Brothers on the Wii. The thing that kept me playing was that wonderful feeling of “Level Complete!” However many times it took me to complete the level, I loved the buzz of ‘you did it!” fairly frequently. And even when I didn’t complete the level, I enjoyed the smaller wins of not dying quite so early on in the level. On days when you can’t even face brushing your hair, the assurance that there are still things you can do is definitely a boost! With code, I love facing a seemingly impossible problem, breaking it up into its smaller parts and solving them one by one. Even on days that are tough, managing the first problem is such an incentive to keep going with the next and the next. Particularly with front end development, seeing a page transform before your eyes is so motivating.
You. CAN. Do it!
‘Level complete’ lead me to wonder what else I could complete if I tried. As I said, I am definitely not a gamer. My marriage is often threatened when my husband and I play co-play games together as he ‘just can’t understand how you can be so rubbish at a game aimed at 7 year olds!” I’m not a gamer but slowly I was completing levels. And I never thought I’d be anything in IT but now, just a few years later, I’m a Senior Engineer. Being able to do something that I never thought I’d be able to do really pushed me to reflect on my mental health, that maybe things weren’t as hard in real life as they were in my head. With the gentle encouragement of solving a big problem, one small problem at a time, it really made the seemingly impossible, possible.
Distraction
The more I coded the more I was sucked in It was such a relief to have something to do for an hour or two which would take me away from my own thoughts. And better than that, I had achieved something which began empowering me to achieve more things, small things first like making my bed, and then eventually bigger things, like signing up to do a coding bootcamp. With coding you need to be fully engaged, there’s no space to be thinking about other things. Slowly, having other things to focus on that didn’t completely drain me, gave me back the energy to knock my anxiety and depression on the head.