AlgoDaily

Solving the Health Problems of Software Engineers

Read at your own pace. Code execution, quizzes, progress tracking, and the AI tutor are available in the interactive view with JavaScript enabled.

Introduction

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

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

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.

Body Maintenance Map

Back and wrist issues usually do not come from one dramatic event. They build from repeated positions, weak support muscles, and too little movement variety.

Use this visual as a quick diagnostic: strength, mobility, and ergonomics all reduce stress from long coding sessions. If pain is sharp, persistent, or worsening, treat that as a medical signal—not something to push through.

Body Maintenance Map

Developer Body Hotspots

Before we move from body mechanics into desk setup, notice the pattern: most developer aches come from repetition + stillness + weak positions.

Use the visual as a quick scan. If one area is flaring up, the fix is usually not one magic product—it is a small loop of strength, mobility, breaks, and better positioning.

Developer Body Hotspots

Problem Desk Setup

Problem: Desk setup

A lot of wrist, neck, and back issues are not caused by one dramatic injury. They're caused by thousands of tiny repetitions in a bad position.

If your monitor is too low, your neck cranes forward. If your keyboard is too far away, your shoulders round. If your chair is too high or too low, your hips and lower back take the hit.

SOLUTIONS

Bring the work to you - your keyboard and mouse should be close enough that your elbows can stay near your sides. You should not have to reach forward all day.

Raise your monitor - try to keep the top third of the screen roughly around eye level. A stack of books works fine. You don't need fancy gear to fix the obvious stuff.

Feet flat, hips supported - if your feet dangle, use a footrest or box. If your lower back collapses into the chair, add a small pillow or rolled towel.

Change positions - the best posture is usually the next posture. Even a great setup becomes a problem if you freeze in it for hours.

Problem Desk Setup

Quick Check

For dry and strained eyes, what is the main habit recommended in the lesson?

Problem Dry And Strained Eyes

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

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

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.

Mental Habit Loop

The mental problems here have a similar shape: the brain keeps trying to optimize even when there is no useful problem left to solve.

Mindfulness interrupts the loop by returning attention to the present. Stoicism reframes the loop by adding perspective and gratitude. Together, they help you recover instead of carrying work-mode into every hour of the day.

Mental Habit Loop

Mental Reset Loop

The last two problems are mental versions of the same trap: the mind keeps evaluating, comparing, and optimizing even when there is no useful action to take.

A useful reset is: notice the loop, name it, then return attention to what is real and controllable.

Mental Reset Loop

Problem Brain Fog And Fatigue

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.

One Pager Cheat Sheet

One Pager Cheat Sheet

  • Despite the many positive aspects of being a software engineer, the sedentary lifestyle needed to be successful in this profession can be a detriment to mental and physical health if not managed correctly.
  • Taking regular breaks, doing deadlifts with good form and practicing yoga can help prevent back and neck aches caused by bad sitting and working postures.
  • We can reduce wrist and forearm stiffness and soreness from heavy knowledge work by doing deadlifts and forearm/wrist stretching.
  • - Developer body care works best as a system: strengthen, stretch, adjust setup, and take breaks.
  • - Back and wrist problems often come from repetitive work in weak or static positions; counter them with strength, mobility, breaks, and ergonomics.
  • - Make the default working position less hostile: close keyboard, raised monitor, supported feet/back, and frequent position changes.
  • - Use distance-looking breaks to reduce eye strain from long screen sessions.
  • We can reduce symptoms of strained and dry eyes by following the simple rule of looking into the distance frequently, which helps to change how the eyes work and should be done every 20 minutes or so.
  • Practicing Mindfulness Meditation has helped me to control my monkey brain and stay focused on the present mode, allowing my thoughts to simply pass through.
  • Practicing stoicism can help appreciate what you have and avoid the "grass is greener" syndrome.
  • - Mindfulness resets attention; stoicism resets perspective.
  • - When overthinking or comparison takes over, notice the loop, name it, and return attention to the present and controllable.
  • Taking regular breaks, engaging in cardio, and consuming green tea are all great ways to combat brain fog and fatigue.
Open interactive view →