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!
Subscribe to my newsletter
Read articles from Brilliant Makanju directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by