DEV Community

Cover image for How to Stay Fit Physically and Mentally and Keep Coding

How to Stay Fit Physically and Mentally and Keep Coding

Ilona Codes on May 26, 2019

Throughout the last year, I have worked part-time as a working student and also studied at the university. I was not the first and not the last one...
Collapse
 
j_mplourde profile image
Jean-Michel Plourde

What I do to stay fit:

  • Every 25 minutes (pomodoro session), I get up and stretch.
  • I alternate between sitting and standing desk positions (if the job/internship I have has one)
  • I go mountain biking on the weekends during summer

What I want to improve:

  • Going to the gym. I used to go there 3-4 a weeks and really enjoyed power lifting
  • Cut on carbs more. Not all a problem, but I can still improve.
  • Take a walk on my lunch breaks. Listening to podcasts instead of watching YT videos.
  • Learn a martial art. I only had some class during pre college and had fun since it's a nice all around discipline (physical and psychological)
Collapse
 
ilonacodes profile image
Ilona Codes

Thank you for sharing 🙏 I really like your upcoming plan very much!

Collapse
 
j_mplourde profile image
Jean-Michel Plourde

Just today I went for a walk during lunch break. I had your post in mind and it inspired me to do better.

Collapse
 
joemsak profile image
Joe Sak • Edited

I would like to share a couple of psychological shifts that I have made, which seem to be working for the long-term. I don't like to call it tricks, or hacks, because it is a completely normal way that the mind works. If anything our minds have been tricked and hacked by abnormal things in our environment :-) and we're retraining them to normality.

  • Choose DISCIPLINE, and NOT motivation

    • motivation is fleeting, it comes and goes
    • motivation is passive, it happens TO you
    • discipline is active, you choose it
  • Make the journey itself its own reward

    • Don't focus on the goals
    • Don't stress that the results aren't happening "fast enough"
    • Hard things worth doing always take longer than we think they will
    • You'll NEVER get results if you quit due to not getting results
    • Reward yourself with the self-esteem & inner security of simply knowing that TODAY, you did one thing no matter how small toward your goals, and it's not about the goals anymore anyway, it's about showing up today and doing one small thing
  • Remember your ego WILL backlash on you

    • Regardless if the changes you're making are good or bad, your ego doesn't care: its job is to maintain status quo, no matter what
    • If you "backslide" or return to old habits, take that as a GOOD SIGN
    • It means that your ego is clinging desperately to fight the change
    • It's a sign that you're actually making changes
    • So just choose DISCIPLINE today and do one small, doable thing today

Finally I want to say that a daily practice of meditation will probably give you everything you need to be able to do the rest. Everything you need to know is already inside of yourself. Train yourself and your mind to take pauses, away from default reacting, toward thoughtful response.

AND, sorry I talk too much (-:

I choose to get up early enough and do everything first thing in the morning. That is how it works for me, or else I know I won't do it later. Get up, get it done, feel awesome for having done it, don't spend the rest of the day feeling guilty.

Collapse
 
jaeheonshim profile image
Jaeheon Shim

This is great

Collapse
 
victorosilva profile image
Victor Silva • Edited

Great post!

I try to follow most of these points on a daily basis, but I really struggle with getting proper sleep. I gotta work on that.

I just don't like the low carb fad because not all carbs are evil, only the refined ones are!

Whole carbs actually help to control our blood sugar levels. Think of oats: they're loaded with carbs, but they are recommended even for people with diabetes.

That's why I think that instead of cutting on all carbs, we should be cutting on bad carbs only.

Collapse
 
ilonacodes profile image
Ilona Codes

I understand you 😅
Yes, it's true: "we should be cutting on bad carbs only" 👍

Collapse
 
ben profile image
Ben Halpern

Thanks for a great post Ilona, super important subject.

Collapse
 
ilonacodes profile image
Ilona Codes

I am happy to share this experience with the dev community! 🙂

Collapse
 
joehobot profile image
Joe Hobot

The title should be "How to Stay Fit Physically and Mentally and Keep Coding Without Kids" just to be more realistic :) , now I am not saying that it's not possible, however when you have little ones that part where you say "Get Sleep" and Exercise , yeah that's not going to happen in same day or few times a week unless there is 30 hrs in a day or you work 9-2.

Good post, I think no matter who/what the situation is everyone should take time for their body even if it's 20-30 minutes more a day.

Collapse
 
damnjan profile image
Damnjan Jovanovic

Ah, yea, having kids is totally different setup. I try to live balanced, having proper sleep, having exercise, pay attention to nutrition intakes, but I must say that, this is much more difficult if you have a small kid.

Collapse
 
shirlenelss profile image
shirlenelss

Totally agree. I code after my child sleeps after 8pm for 2 hours every other day. I strength train the nx day instead. (current setup)

Collapse
 
mortoray profile image
edA‑qa mort‑ora‑y

I wrote How Programmers Can Improve Their Fitness Without Going to the Gym, which is a good starting point for somebody wanting to improve their fitness. I even linking a bunch of backing studies!

As to low-carb diets, I have a site dedicated to exploring such recipes and information, Edaqa's Kitchen. Main point, don't stress too much here. Reduce sugar, replace white with whole grain, and you'll be a lot better off. Beyond that, skip the rice and pasta.

Collapse
 
ilonacodes profile image
Ilona Codes

Thank you for the link to the post! I have read it and agree with all the provided action items to improve our fitness 👍

Collapse
 
brokenthorn profile image
Paul-Sebastian Manole

I have a colleague that applies the pomodoro technique and always stays productive. I didn't know what he was doing because it was masked by his smoking needs but I soon realised he never spent more than 5 minutes doing that.

Collapse
 
ilonacodes profile image
Ilona Codes

Perhaps, he did that subconsciously, or?
BTW, I know many software developers who use the Pomodoro technique and cannot be productive without it anymore.

Collapse
 
brokenthorn profile image
Paul-Sebastian Manole

No. He knows Pomodoro. I just didn't know at the time that that was what he was doing. I thought he needed frequent breaks because he smokes. I guess he does but maybe that helps him be more productive. Maybe people that smoke are more productive than people that don't, since they often take small breaks.

Thread Thread
 
andrewbogdanovtss profile image
AndrewBogdanovTSS

I personally feel that frequent breaks make me very unproductive

Collapse
 
karatemania1016 profile image
Karatemania1016

I work at a university and i've noticed that all the age groups have begun to do most of desk work standing.While the students have still been placed into the traditional seated learning.Why haven't more systems been adjusting this?

Collapse
 
ilonacodes profile image
Ilona Codes

Interesting observation! I wish I knew the answer 😩

Collapse
 
andrewbogdanovtss profile image
AndrewBogdanovTSS

I guess it's because there are no concrete studies that would prove that standing work is any healthier than seated work, it's still in high debate

Collapse
 
justsharkie profile image
/*Sharkie*/

This is something we need to hear more often! Balance is SO IMPORTANT, from physical exercise, to diet, to sleep.

Sometimes I find myself falling into bad habits and have to give myself a kick. Immediately start feeling (and coding!) better again.

Collapse
 
ilonacodes profile image
Ilona Codes

Yeah, sometimes that happens to me too 😅In the end, we are all just humans.

Collapse
 
dwayne profile image
Dwayne Crooks • Edited

You may want to rethink your advice with respect to a "low-carb diet". I don't want to go into all the details here but I'd recommend these resources:

I'd be happy to suggest more videos and reading material if you're interested.

Collapse
 
ilonacodes profile image
Ilona Codes

Thank you for the links to the informative sources! I will check them out 🙂

Collapse
 
thefern profile image
Fernando B 🚀

This reminds me, I've been working on a cheap alternative to stand up desk using 3d printer parts and 1in pvc. Will try to finish this soon, my weight has increased dramatically :(, I gotta shake this off. I'll make a post about it.

Collapse
 
ilonacodes profile image
Ilona Codes

Wow! I would be interested to read this post 😃

Collapse
 
luciojb profile image
Lúcio José Beirão

It's hard to find texts so objective, simple yet deep and well written lately. I could read your entire post and feel comfortable, not only with the flow, but also the lack of typos and common sense (not in the bad way). People tend to rush and post only things that come to mind. Your post did describe so well the experience and life conditions under programming and development jobs, and your solutions are welcomed. Thanks for sharing!

Collapse
 
penoutlet profile image
Sam

Great post. One criticism for you is that asking "why am i feeling this way?" Is not usually an effective means of feeling better, if you are sad, stressed, angry etc. Sometimes you can find a useful answer to the question, but usually it is better to engage in an unrelated activity known to bring you joy (i.e. a pleasant distraction).

Collapse
 
ilonacodes profile image
Ilona Codes

Good point! I am also trying to switch context if I cannot find the right answer on the question because even if we changed the activity, our brain continues looking for the proper solution.

Collapse
 
lfpll profile image
lfpll • Edited

Great one.
I myself started to hit the gym very early in the morning after reading "atomic habits".
It has been a month now and I can clearly see the difference on how I'm handling work. my coding is improving, I'm less stressed and my pains for being to much time on the desk diminished a lot and after all learned a bunch of new stretches.

Collapse
 
ilonacodes profile image
Ilona Codes

Yes, it works! Because physical activity is one of the most effective ways to improve our mental health and productivity.

Collapse
 
nyawning profile image
Nidal Ghonaim • Edited

I don't like to read articles much but this one was a joy to read. Specifically because if the way you presented your arguments. They were well supported with logical reasoning and not too critical of what we coders tend to get a bit defensive about 😅

Collapse
 
ilonacodes profile image
Ilona Codes

Thank you very much for the comment! It seems that I am lucky if you liked it 🙈

Collapse
 
lenarunner profile image
Lena Runner

You mention many important things here, thank you. I would add some extension to the 5th point. Self-reflection is one of the things that we often forgot about, even if a possibility to use it is always with us! Some years ago I decided to leave my old attitude to always do everything for everyone (of course ASAP ;)) and started working smarter instead of working harder. One of the 'friends' I met then is still with me - kanbantool.com and looking at this very simple tool reminds me about what is really important. It wasn't an easy way to feel better with myself but it was totally worth it! More, I also started to pay more attention to sleep enough. It is so important!

Collapse
 
azphillipse profile image
azphillipse

Guten Morgen Ilona,

Here in America, it's about 10 am. As I was reading your blog. It got me thinking of my own life at home and getting my business off the ground. While learning more about my SEO specialist career. I have a full plate of SEO, learning HTML & CSS for my website building, blogging. Even thinking of podcasting, youtube videos to help clients in educating them of website troubleshooting their issues.
The most important thing is health. Americans like to run hard and worry about the side effects later. Fast food, quick eating and drink while on the road. I know for sure I would want to do all of that while driving the Autobahn :) little humor.

Your list is awesome and informative. Your blog posting is not all about computer science and but health is part of that programming we all need to think about every day. Here at simplifiedsolutionseo.com, I will be doing more on my feet for a while and doing my computer work at the same time..Thank you Ilona.

Collapse
 
toddcoulson profile image
Todd Coulson

Great post. This is a topic that is not talked about enough among coders. I am thankful I got into running before I ever started coding. 9 marathons later, still going strong.

Collapse
 
ilonacodes profile image
Ilona Codes

You are right, usually most of the time we focus on code and have conversations/discussions about it at work.
Wow! 9 marathons! It's amazing 😃
I wish I got into sport before coding too 😅

Collapse
 
toddcoulson profile image
Todd Coulson

Never too late to start. Don't focus on the 9 or even the marathon part. Find a sport you love to do, and it will stay with you forever. The problem most people have is "I have to go to the gym" syndrome. They hate it, it doesn't become routine, it is a chore. Don't make exercise a chore.

Collapse
 
haseebeqx profile image
Haseeb Annadamban

Thanks for the fantastic post. Fitness can be challenging when you work remotely. So it is very helpful in my life.

Collapse
 
ilonacodes profile image
Ilona Codes • Edited

Thank you very much for the feedback! 🙏 Why can fitness be challenging in this case?

Collapse
 
haseebeqx profile image
Haseeb Annadamban

Working remotely means don't have to visit anyone. No need to travel, No need to dress properly. No need to walk outside. Just like anything else these perks also have its disadvantages

Collapse
 
drdomski profile image
drdomski

I’m lucky enough to work from home most day’s, and have been doing so for the last 17 years. In the early years I made the mistake of letting the fact that I was at home lead me into working more and more, sometimes at ridiculous times. When I found myself getting out of bed at 2am to do an hour of work before going back to bed, I knew I had a problem.

After many experiments I now have a general schedule that I try to follow, which works for me and keeps me productive, fit and sane.

First hour, catch up on email, admin, calls etc. The rest of the morning is for work, either dev, design, project management. I try and work in bursts, around specific tasks, similar to pommodoro. I don’t impose time limits on the bursts, but at the end of each I will get up, walk around, make a drink. Or if a task has taken just a few minutes, I will check the news, read a blog. My aim is to reset my mind by thinking about or doing something else for a few minutes, before I embark on the next task.

I don’t take a scheduled lunch hour, but usually after 3-4 hours I will stop and take the dog for a walk for 45 mins or so and then have a light quick lunch.

When I restart work, I will take typically take 15-30 mins to catch up on emails, calls and then work the rest of the day.

My working day will normally start at 9am, but sometimes earlier, sometimes later. Generally I work an 8 hour day, Monday to Friday and I don’t work outside of those times, ever. In terms of output, a 40 hour week will give me about 30 hours of quality billable development, which I think is an acceptable return, and another 10 hours to run the business. Where I’m working with colleagues on projects I wouldn’t expect more than 30 hours of output per week.

This compares to other times over the years when I’ve naively worked 70-90 hour weeks and probably lucky to be 50% productive, with the quality of the output at sometimes questionable.

Outside of work, I have a hobby which has nothing to do with programming, and I try to go to the gym 3 times a week.

I am lucky in that I get to define my working environment but I know from experience that a disciplined, structured approach is vital. Currently I would say my work life balance is about the best it’s ever been.

Collapse
 
johnphamous profile image
John Pham

If you're interested in low carb, check out the keto direct subreddit! Tons of great info on there.

Collapse
 
ilonacodes profile image
Ilona Codes

I think the keto diet would be too strict for me 😅

Collapse
 
kylefilegriffin profile image
Kyle Griffin

With the longer evenings, there isn't a reason that you can't fit in a 30 minute walk before getting home. I do this and have been doing it since November, and while I was using it to deal with other life events at the time, I was learning code more efficiently and my eagerness to learn was improving because of it.

Collapse
 
thomasjunkos profile image
Thomas Junkツ • Edited

Thanks for sharing your tips :]

I wanted to add to your dietary tips, that "low carb" is one (the easy?) way to have a more constant bloodsugar level. The necessary sugar needed is then built via gluconeogenesis.

But not everyone is into low carb. So having something like rye whole grain bread for breakfast is also a possibility, since it demands some effort to metabolize that.

The point there is to make sure, your level is somehow constant.

I like your writeup!

What I am struggling the most with is having a constant amout of sleep :D

Collapse
 
amadsoum profile image
amadsoum

OMAD stands for One Meal A Day. Really make sure to eat more vegetables and finally be super happy with that one meal.thats me right there.😋💪

Collapse
 
vuild profile image
Vuild

Coded. Still alive.

Take breaks, long fun ones. Plan them in.

Collapse
 
ilonacodes profile image
Ilona Codes

👍

Collapse
 
maisonjoeljr profile image
maisonjoeljr

awesome...
thanks a million for sharing

Collapse
 
ilonacodes profile image
Ilona Codes

You are welcome! 🙂

Collapse
 
rodriguesjd profile image
RodriguesJD

This was great.

Collapse
 
ilonacodes profile image
Ilona Codes

Thank you! 😊

Collapse
 
system_nyc profile image
Charles Vasquez

I don't do much anymore. It's a struggle to get up and out. I appreciate this article. I am looking for motivation and a new leash on life.

Collapse
 
ilonacodes profile image
Ilona Codes

Thank you for your comment! It's a struggle to find work-life balance.

Collapse
 
littlebenlittle profile image
Ben Little

The brain and body, like any other machines, need to be operated with care and given regular maintenance. Thank you for the reminder!

Collapse
 
ilonacodes profile image
Ilona Codes

Thank you for reading! ☺️

Collapse
 
kenystev profile image
Kevin J. Estevez

Yeahh! I know I need to have a balance since lately I've been having little annoying headaches every day. Thanks for the post!

Collapse
 
ilonacodes profile image
Ilona Codes

I also have had annoying headaches mornings and evenings. That's why I understood that something should be changed in my life.

Collapse
 
ciaociao9 profile image
ciaociao9

Thanks for your great post. I know...I know...😥

Collapse
 
ilonacodes profile image
Ilona Codes

I am happy you liked it! Many thanks!

Collapse
 
mizstik profile image
The Long Mizstik

I seriously doubt #5 will make me feel better but the others are good. Probably.

Collapse
 
waterlink profile image
Alex Fedorov

It depends. #5 makes for the long-term better, even if short-term is not comfortable.

Collapse
 
oleksandr profile image
Oleksandr

Jogging at least 3km is what bring mind clearness to me

Collapse
 
thaihoang1801 profile image
Hoang_Comma

Thanks for your great post. And these are the ways I stay fit:

  • Minimize my use of elevator
  • Living in a room for rent on the highest floor. The higher the room, the more stairs I climb
  • Do the washing by my hand
  • Stand up and stretch every hour
  • Play football once a week
Collapse
 
ilonacodes profile image
Ilona Codes

Thank you for reading and sharing your useful action items to stay fit with us! 🙏

Collapse
 
ortegadan profile image
Dan Ortega

Thank you very much for this post... I appreciate it so much in my life..

Collapse
 
ilonacodes profile image
Ilona Codes

It's awesome that you enjoyed it! ☺️

Collapse
 
ajvarparadise profile image
ajvarparadise

Much appreciated post. Very important for a healthy work-life.

Collapse
 
ilonacodes profile image
Ilona Codes

Thanks a lot for your words! 🙏

Collapse
 
adnanebrahimi profile image
Adnan Ebrahimi

Thank you for your great post. We must focus on our life balance before everything for to be ready for every challenges

Collapse
 
ilonacodes profile image
Ilona Codes

Exactly! 👋

Collapse
 
javaherisaber profile image
Mahdi Javaheri

We all face diverse kinds of challenges on a daily basis, enhancing our resiliency to change and adopt when something goes wrong is a crucial and vital part our life.
recently I've been struggling with work life balance, a lot
what i did to fix things up was establishing some little habits for 3 important times of a day (early morning, afternoon and sunset)
at first it may sound silly that for example having meetings in the afternoon instead of morning have good impact on you
to recap , building resiliency needs CHANGE in little things and integrating them together to create a big change

Collapse
 
patsullivan6 profile image
Patrick Sullivan

Such an essential post to read.

I tend to focus heavily on a non-programming activity and physical fitness. I've got to have a creative outlet in my free time. I love anything that has to do with music composition and production. It's a nice meld of creative and technical skills.

I truly think proper sleep and proper hydration can ultimately lead to a more balanced and healthier lifestyle. If you pictured yourself as a plant, would you be wilting?

Collapse
 
_hs_ profile image
HS

On average women need more sleep than men. That said I still disagree with the sleep thing in terms of quantity. A lot of people that did something, made something, geniuses, slept less than 7 hours. As in other things I think quality is not the quantity even in sleep.

Collapse
 
micazev profile image
Michelle Azevedo

thanks for bringing this topic! :)

Collapse
 
ilonacodes profile image
Ilona Codes

Welcome! 🙂

Collapse
 
chuksjoe profile image
Chukwunonso Orjiakor

Well thought out points on how to improve our mental and physical health. I still have much work to be done, mostly in the sleep aspect.
Thanks so much Ilona for sharing.

Collapse
 
filipecsoares profile image
Filipe

Great Post!! Thank you to sharing :)

Collapse
 
ilonacodes profile image
Ilona Codes

Thank you for reading and always welcome! 😊

Collapse
 
sudogetbeer profile image
Lars

Wow cool to see someone here that went to the same university as I.

Manchmal ist die Welt echt ein Dorf.

Cool tips btw ;)

Collapse
 
manorajrdg profile image
manorajk

Great one!! Adding to those 5 things, the sixth one which I feel important is to 'Plan your day'.

Collapse
 
insign profile image
Hélio oliveira

Thank you for writing. Note a typo in "becasue" in item 4.

Collapse
 
aarondrs profile image
Aaron Rodríguez • Edited

Calisthenics worked for me, I started on January. It has been a great decision!

Besides the fact to double check what you eat.

Collapse
 
maestromac profile image
Mac Siri

Great Post!

Collapse
 
osde8info profile image
Clive Da

try a stand up desk :)

Collapse
 
douglasfugazi profile image
Douglas Fugazi

Thanks for sharing theses insights. I will try apply some them.