🚀 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.
- Steps and walking: Hitting 7–10k steps a day is enough to cut risk factors. I often use an indoor bike in the evenings, it’s an easy way to add movement without leaving home.
- Zone 2 cardio: I dedicate 3–4 hours a week to running or cycling in Zone 2. At first it feels uncomfortable, but after a few weeks it becomes easier and you feel more energetic overall.
- VO₂ max work: Once a week I do short, harder intervals (like 6×2 minutes). They are hard but they boost endurance and mental toughness.
- Weight training: I lift three times a week on a full-body split. My goal is hypertrophy, but even 2 sessions a week, with 1 set per muscle group is enough to gain strength and muscle mass, which helps with endless things like hormones, injury prevention, posture and of course self confidence.
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:
- sticking to consistent bed and wake times when possible
- cutting caffeine after lunch (even if you don’t feel it, it badly affects sleep quality)
- trying to get 7-8 hours of sleep per night
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:
- the right amount of protein (around 2 g/kg of body weight)
- high carbs to fuel brain function and training
- moderate fats, mostly from healthy sources
- plenty of vegetables and fruits for micronutrients
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
- Walk more, even if it’s just standing up and walking around for a few minutes every hour.
- Lift weights twice a week.
- Add 2–3 hours of light cardio weekly.
- Treat bedtime like the most important meeting of the day.
- Track your progress with a simple app and wearable.
💡 The impact on work
Since I built these habits into my life, I’ve noticed:
- sharper focus for longer periods
- more creativity and social energy
- less stress and anxiety
- better resilience under deadlines
I highly recommend you give it a try. Your body will thank you and you will feel better both at work and in life.