DEV Community

Jake Z.
Jake Z.

Posted on • Edited on • Originally published at algodaily.com

Solving the Health Problems of Software Engineers

This story was originally published at https://algodaily.com, where I maintain a technical interview course and write think-pieces for ambitious developers.

As software engineers, we're kind of spoiled in many ways. For the most part, we get to enjoy higher than average compensation, pretty good work-life balance, and a slew of interesting things to work on. The technology sector as an industry is a great place to be, and many developers plan to spend most of their working lives in it.

But there are certainly some downfalls to being a software engineer. Though intellectually stimulating, it's certainly a pretty sedentary endeavor. In addition, having access to a constant stream of stimulation can be pretty bad for our brains, as many people have begun to anecdotally discover.

The average software engineer will wake up, go to work, and sit in a chair all day, staring off into the deep edges of the internet or some text editor. They might also be on their phones during both ways of the commute, and then play video games or watch TV long into the night. This pattern can be disastrous to your health over the long term.

Here are some ways to ensure sustainability if you're looking to optimize your mental and physical health, ensure that you remain at your best long into your career.

Disclaimer: I AM NOT A MEDICAL PROFESSIONAL AND THIS ADVICE SHOULD NOT BE MISCONSTRUED AS MEDICAL ADVICE IN ANY WAY. THIS IS PURELY ANECDOTAL BASED ON WHAT'S WORKED FOR ME. PLEASE SEEK A PROFESSIONAL FOR HELP IF NECESSARY.

Problem: Bad back

Bad sitting and working postures can cause back and neck aches to occur. Constant sitting in one position is harmful, but unfortunately this is a necessary evil in our profession.

The soft discs between vertebrae dry over time, and these discs can put pressure on nerves, inflicting great pain. Aside from constant breaks and walking around as much as possible, here are some other things to try.

SOLUTIONS

Deadlifts - many of my friends who are in the business complain about wrist and back problems all the time. None of them regularly do deadlifts. Deadlifts are a classic exercise where you bend over and pick up a weight, using your forearm/wrist and posterior chain muscles. Here's a book with good explanations on deadlift form. Start off light, perhaps once a week, and ensure that you have someone watching your form to ensure you're doing it properly.

Yoga - Yoga helps your muscles relax so you can be more resilient. I highly recommend simply going on Youtube, getting a mat, and following some routines-- your body will thank you. Note that the harder poses take a while to build up to, so be patient!

Problem: Bad wrists

If you're a knowledge worker, you likely spend hours upon hours scrolling and typing, leaving your hands and wrists in awkward positions. The

SOLUTIONS

Deadlifts - they help here too. It's odd that one exercise could prevent so many issues, but soreness and pain in your wrists and back can often be attributed to lack of strength. The reason is because many gripping/typing/steering motions are highly repetitive, causing weakness and stiffness in your wrists and fingers.

Note: Wrist pain symptoms can vary, but carpal tunnel syndrome, a very common neurological condition, is due to excess pressure in your wrist that causes swelling. Often the underlying issue is a medical condition, but it can be exacerbated via overextension. There is no research indicating that strengthening your wrist helps prevent carpal tunnel syndrome.

Forearm/wrist stretching - Stretching is recommended to increase flexibility in those repetitive motions. I'll do these stretches a few times a day, whenever my forearms/wrists are feeling stiff.

Problem: Dry and strained eyes

This is very common problem. We stare at screens for most of the day now-- aside from getting glasses, what can we do?

SOLUTION

This one is easy to solve-- look into the distance frequently. It helps a lot to be seated near a window. The rule of thumb is: every 20 minutes, stare into the distance for 20 seconds. For me, it's probably more like every 2 hours, but just changing how my eyes are working has helped greatly.

We're now going to move on to some mental health tips. Again, I'm some random guy on the internet, not a medical profession.

Problem: Overthinking and lack of focus

As developers, we spend our days thinking up elegant solutions to tough technical problems. But how often are you able to truly stop this thinking when you want it? After work, is your brain still revving its engine-- except now, there's no tough challenge to solve, and you begin to ruminate on unnecessary things? (I wonder what that dude I see once a month in the hallway thought of my shirt.)

This happened far too often when I first became a developer. I realized I had a tedendency to carry "code mode" into situations outside of work, and found myself unable to control my monkey brain.

SOLUTION

Mindfulness Meditation has made the biggest difference here by far. You're training your mind to shut off by focusing on the present mode. Your brain cannot concentrate on two things at once (though we certainly try), so when you stay in the now and enjoy your sensory inputs, your thoughts simply pass through. I highly recommend Why Buddhism is True for a rational argument on this concept.

Problem: Lack of appreciation

Again, we as developers have it (for the most part) pretty good. But take one look at forums for developers, and you'll see that many people expressing their dissatisfaction with their careers. Of course, we as humans have every right to not be content with things, but it's not uncommon to see an engineer making low six figures groaning about not making half a million. Or complaining about the free food in the office cafeteria. Or making it to the position of their dreams and then suddenly looking for the next better opportunity.

Again, you have every right to be unhappy, but if you find yourself chasing after "something better", you may be experiencing the "grass is greener" syndrome.

SOLUTION

What I've found to work best has been practicing stoicism. You can think of it as weight-lifting for the mind. On a daily basis, you are reminding yourself that bad things can and will happen to you, but things can always be worse. Thinking about how things could be worse will surprisingly help you appreciate what you do have.

Problem: Brain fog and fatigue

In addition to sitting too long in one spot, we as developers are prone to thinking about one thing for too long. This can cause us to become mentally tired, and make it hard to think. Usually sleep and relaxation will resolve it, but brain fog and fatigue can often linger for a few days.

SOLUTION

Cardio - I've recommended it here before, but cardio is incredibly beneficial to mental health in a myriad of ways. Whenever brain fog creeps up, a quick 30-45 minute run will get me in the zone again.

Green tea - There's a cacophony of benefits to green tea, but the mix of both stimulating and relaxing chemicals seems to put me in a good place and help me focus.

This story was originally published at https://algodaily.com, where I maintain a technical interview course and write think-pieces for ambitious developers.

Top comments (10)

Collapse
 
kdraypole profile image
Kobe Raypole

Deadlift solves everythingπŸ˜‚

Collapse
 
joemsak profile image
Joe Sak • Edited

Folks like me who already have dried out discs should probably look into alternatives: quora.com/What-are-alternatives-to... -- Also, SWIMMING! :-)

Collapse
 
cainwatson profile image
Cain

Thanks for sharing this info! I created a little script to remind me to look away from the screen.

Create a file. I just put it in my user's home directory: ~/scripts/look-away.sh

# Show notification and play sound
osascript -e 'display notification "Look away for 20s" with title "Look away"'
afplay /System/Library/Sounds/Frog.aiff

# Wait 20s then play another sound (to let me know to get back to work)
sleep 20s
afplay /System/Library/Sounds/Glass.aiff

Setup cron to run the script (this will open up a text editor like vim)

sudo crontab -u $(whoami) -e

Enter this to have the script run every twenty minutes

*/20 * * * * bash ~/scripts/look-away.sh
Collapse
 
codingmindfully profile image
Daragh Byrne • Edited

Also hot tip on Meditation.

Here is my Ultimate Guide to Meditation for Programmers.

It's free!

PS just finishing Why Buddhism is True, fabulous book.

Collapse
 
isaacdlyman profile image
Isaac Lyman

I love deadlifts so much. I think it's the efficiency that gets me: a deceptively simple motion, up and down, that works so many muscle groups at once. A few sets of those does more for me than anything else I do in the weight room.

Collapse
 
sandordargo profile image
Sandor Dargo

If you have problems with your wrist, this powerball helped my wife a lot. The doctor said it's fine if in the beginning, she couldn't do more than a couple of seconds. It builds up slowly.

Collapse
 
thefern profile image
Fernando B πŸš€

Good read. Recently I purchased a standup desk for $84 from Amazon. Sitting all day is a horrible way to work lol.

Collapse
 
codingmindfully profile image
Daragh Byrne

Hot tip on the yoga :)

Here's my article about yoga for devs:

Yoga for devs

Collapse
 
joemsak profile image
Joe Sak • Edited

For Yoga and Full-body exercise at home, I cannot recommend these two channels enough, for real

Sarah Beth Yoga
youtube.com/channel/UC-0CzRZeML8zw...

Fitness Blender
youtube.com/channel/UCiP6wD_tYlYLY...

Also, as recommended to me by my doctor for my 2 herniated discs, swimming! But obviously that will cost more in memberships and time, than home workouts. Fitness Blender always provides low-impact modifications to their routines!

Collapse
 
blushi profile image
Marie

Using a vertical ergonomic mouse also helped me solve problems with my wrist!