Code, Coffee, and Cardio: 10 Tips to Keep You Healthy While Hacking Away šŸ’»ā˜•šŸ’Ŗ

Let’s face it—being a software engineer might just be the new "sitting is the new smoking." Long hours glued to a screen, staring down code, battling bugs, and racing against deadlines… it's not exactly the healthiest gig out there. šŸ˜…

I’ve been jet-setting around, meeting dev communities across Europe and the U.S., and there’s one thing I’ve noticed over and over again: many of us treat ourselves like machines. It’s like we’ve forgotten that we’re humans first, coders second! We’re running on caffeine, junk food, and the sheer determination to meet that next spec—while our bodies are practically waving the white flag.

I’ve been there. My college days and early career were basically sponsored by fast food, sleep deprivation, and a total lack of exercise. But about six months ago, I stumbled upon the shocking discovery that gasp taking care of myself actually made me feel better—both personally and professionally. I’m talking losing over 10 kg, ditching the cigarettes, and sending stress packing. And because I’m not one to keep a good thing to myself, I’m here to share the 10 tips that helped me get my mind and body in sync while still living that developer life.

1 — Sugar? Nope, Not Today šŸ¬šŸš«

Let’s start with the bad guy: sugar. It’s like that sneaky bug that ruins your code at the worst possible moment. Sugar’s in everything, and it’s not doing you any favors. Remember that 3 PM slump where you’re nodding off mid-debug? That’s the sugar rollercoaster talking. It makes you fat, sick, and craving more sugar. Time to hop off that ride! Stick to low-glycemic foods like veggies, fresh meats, nuts, and eggs. And for the love of all things healthy, avoid the fast-food trap. Try cooking something new, mix up your meals, and maybe skip dessert once in a while. šŸ½ļø

2 — Slow Down, Speed Racer 🐢

Your brain needs 25 minutes to realize it’s full—so don’t shovel food in like you’re trying to set a world record. Chew slowly, savor each bite, and let your body tell you when enough is enough. Eating slower isn’t just polite, it’s great for digestion and keeps you from overeating. Plus, you’ll actually enjoy your meal. Imagine that!

3 — Ditch the Desk Dining šŸ½ļøšŸš¶ā€ā™‚ļø

If you’re one of those people who eats lunch at your desk while catching up on emails or watching YouTube, it’s time to stop. Seriously. Take a break, get some fresh air, and find a spot outside to enjoy your meal. If you work in a skyscraper like me, take a walk around the block or find a nearby park. Who knows—you might stumble upon something new and exciting, like a hidden coffee shop or a cool conversation with a stranger. šŸŒž

4 — Snack Smartly šŸŽ

Nobody likes being hangry, and I’m no exception. If you need a snack, reach for something healthy like an apple or a handful of nuts. Keep those sugary snacks and candy bars out of sight—they’ll only make you crave more and do nothing for your hunger. Personally, I’m a fan of having five or six small meals throughout the day instead of three big ones. It keeps my energy levels stable and helps with digestion, though it does require a bit of planning. 🄜

5 — Hydrate Like a Pro 🚰

Don’t wait until you’re parched to grab a drink. Keep a water bottle with you all day, and take sips regularly. And hey, why not take a sip right now? It’s free! Increasing your water intake not only keeps you hydrated but also gives you an excuse to step away from your desk for a quick bathroom break. Bonus tip: I set up a fun little macro in my code editor to remind me to drink water every time I save my code 20 times. šŸ’§

6 — Sleep Like You Mean It 😓

Think of sleep as your body’s way of recharging. You wouldn’t unplug your phone before it’s fully charged, so why skimp on your own rest? Sleep deprivation is no joke—it messes with your thinking, makes you cranky, and can even slow down your code flow. Aim for a solid 8+ hours of sleep, and trust me, your future self will thank you. šŸŒ™

7 — Screens Off Before Bed šŸ›Œ

Here’s the hard truth: staring at screens before bed messes with your sleep. I know it’s tempting to keep coding late into the night, but your brain needs time to wind down. Shut off the screens at least two hours before bed, and you’ll wake up feeling refreshed and ready to tackle the day. Plus, you might even start waking up naturally without an alarm. Imagine waking up with a smile on your face instead of hitting the snooze button for the fifth time. 😊

8 — Sit Up Straight šŸ’ŗ

Let’s face it: most of us spend way too much time sitting. And if you’re not sitting correctly, you’re doing your body a huge disservice. Make sure your chair is at the right height, your feet are flat on the ground, and your back is straight. Better yet, try a standing desk for an hour or two each day. Your lower back will thank you, and you’ll notice the difference in your posture pretty quickly.

9 — Take a Breather šŸŒ¬ļø

Breaks aren’t just nice—they’re necessary. Step outside for a few minutes every hour, take a deep breath, and give your brain a chance to reset. You’d be surprised how often a solution to that tricky bug pops into your head right after a short break. Plus, a little fresh air never hurt anyone. 🌳

10 — Move It or Lose It šŸš“ā€ā™‚ļø

Our bodies weren’t made to sit in front of a computer all day. They need movement! Join a gym near your workplace, so you have no excuses not to go. Whether it’s before, during, or after work, getting some exercise in will do wonders for your stress levels and overall health. And hey, building some muscle and doing cardio will boost your metabolism and stamina. No one likes getting winded after just a few flights of stairs, right? If the gym isn’t your thing, invest in a bike or take the stairs instead of the elevator. Your body is your first vehicle, so treat it like the priceless machine it is! šŸš“ā€ā™€ļø


There you have it—10 tips to keep your body and mind in top shape while still crushing code like a pro. Don’t try to do it all at once; pick one habit and work on it for 40 days until it sticks. And don’t forget to check back on this post when you need a little reminder—your future self will thank you!

0
Subscribe to my newsletter

Read articles from Brilliant Makanju directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Brilliant Makanju
Brilliant Makanju