Skip to content
Go back

💪 How I Became a Healthier (and Better) Programmer 🧑‍💻

Edit page

🚀 Introduction

For a long time coding meant sitting all day, overdosing on caffeine, and barely moving at all. At some point I wondered what would happen if I treated my health the way I treat my code: optimize and experiment. Changing my habits wasn’t easy, but the results are now clear for me: I feel better, think clearer, work more effectively and less stressed. Here’s what I did, and how you can start too.


🪑 Why sitting too much is a problem

Developers easily spend 8–10 hours a day sitting. Research shows this level of inactivity raises the risk of cardiovascular and metabolic issues. But you don’t need to become a marathon runner. Even cutting sitting time by half an hour a day already makes a difference.


🏃 Moving more changed everything

Training was the turning point for me.

Science backs this up: just a few well structured sessions each week are enough to offset sedentary risks and improve both body and brain performance.


😴 Fixing my sleep

Sleep is the real foundation of mental health and recovery. I improved a lot by:

Avoiding screens before bed also helps, but personally I find it almost impossible. I try to mitigate the damage by using night mode on my smartphone and computer.

The result: fewer awakenings, deeper rest, and waking up super refreshed. It’s a very underrated productivity hack.


☕ Coffee: Useful but dangerous if misused

I use coffee as a tool. One/two cups in the morning, for pre-workout or during work, that’s it. Drinking it in the afternoon is not worth the sleep disruption. When I need the ritual I’ll have a decaf or zero-caffeine drinks.


📊 Tracking is fun and motivating

I use a smartwatch to keep track of steps, heart rate, and sleep. It’s not perfect, but trends matter more than absolute numbers. Seeing progress over weeks and months is motivating and helps me stay consistent.


🥗 Nutrition

I am the kind of person who can’t stop eating if there’s food around, and working from home makes it a real problem. I was over weight for basically all my life, and I never managed to fix it until I understood how nutrition really works. I solved it by structuring my nutrition around a few simple principles:

Eat in a calorie deficit to lose fat if needed, otherwise stay around maintenance. I lost fat and built muscle, it’s been a game changer for my energy and confidence. Now I tend to track everything at the gram level, but that’s not necessary for everyone. I highly recommend the app MacroFactor, it’s the best one for me (I literally tried them all). I even built a simple calorie tracker app, you can find it on my GitHub, but that’s for another post, and paid alternatives are 100x better.

The diet world is full of misinformation, keep it simple. You will feel better and work better.


🛠️ Where to start

  1. Walk more, even if it’s just standing up and walking around for a few minutes every hour.
  2. Lift weights twice a week.
  3. Add 2–3 hours of light cardio weekly.
  4. Treat bedtime like the most important meeting of the day.
  5. Track your progress with a simple app and wearable.

💡 The impact on work

Since I built these habits into my life, I’ve noticed:

I highly recommend you give it a try. Your body will thank you and you will feel better both at work and in life.


Edit page
Share this post on:

Next Post
🚀 Why Docker Compose is the right tool for your home lab 🧪