r/AskComputerScience • u/AppleNerd1998 • Mar 16 '21
How to stay sane as a developer?
I find myself, like I’m sure many developers do stuck in a rut where they spend 12+ hours in their chair. I have a full time developer job, and on top of that am getting my masters in computer science so my days and weekends revolve around code. Luckily with my job I have a super flexible position to where if I wanted to take the day off or leave for a few hours I can. Does anyone have any tips on how to keep sane and not get into a rut of sitting? I exercise and go to the gym and that does truly help.
Any advice or encouragement for what’s worked for you would be greatly appreciated.
10
u/83bytes Mar 16 '21
This hits SO close to home.
For years I had convinced myself that I will not make it as a developer because I do not eat, breathe and shit code everyday. To "fix" this I spent almost every non-work hours taking online courses and reading blogs and basically "studying" so that i can make it as a developer.
Things got so bad once that I used to feel guilty for hanging out with my friends as i was not "studying". Terrible times.
Things have paid off to some extent, I have doubled my salary in 2 years etc, but the cost is also too much. I dont have much memories apart from work for the last 2 years. :(
That said, I've found that a non-screen hobby really works for me. And Its okay to treat your job like a job. You might like your job, but you dont need to do it when you are not on the clock. :)
I like to DIY things, so I'm learning sewing/stiching and I am planning to learn a new language (human language), and learning to play the guitar, and learning to ride a motorcycle, and learning knitting or chechet and learning how to design and build clothes (for some reason I do not like any of the trousers I own .. ) . I am also trying to see if I can try photography (bought a used DSLR for this).
Hope this helped. :)
6
u/AppleNerd1998 Mar 16 '21
Thank you for sharing this. A lot of what you said is reflective of the way I am feeling. I am only 22 and I do not want this to be a foundational norm, although many people who may look at me externally would think I go out & about and socialize but I am constantly thinking about coding & work obsessively because honestly I do enjoy it, and I get excited about it but I also need to realize there is a balance. And like you said, the past two years are a blur for you, time goes by fast and it’s hard to be conscientious of your time when you always feel like you’re catching up. I get you.
2
u/83bytes Mar 16 '21
Yep.
I realized that I was becoming extremely one dimensional when I was describing what I do (for work and for fun) to my non-Computer-Science friends and family.
I didnt want to be that way and hence looked at some of the non-CS things i liked but didnt prioritize.
3
u/Cybyss Mar 16 '21 edited Mar 16 '21
I've been where you are. I ended up leaving the field entirely to save my sanity, but wholeheartedly regret doing so since now I'm 36 and stuck trying to make ends meet with a dead-end part time job earning just 1/4 of what I used to and have no real prospects.
Give up on sedentary leisure, especially that which involves a screen. You spend way too much time seated in front of a screen as it is for work and school that you can't devote your leisure / hobbies to more of the same. Unreal Tournament 3 and Planetside 2 were the escape which became my undoing. In your case... juggling a Masters degree and a full time job is incredibly tough. You might have to pick one to abandon if you simply don't have time for both (keep in mind that good experience often trumps a higher degree, as long as your job is already in the field you want to be in).
It's excellent that you exercise and go to the gym. That's something I should have done.
Make sure you eat healthy and get a full night's sleep every night. Never make it a habit to skip sleep or breakfast as that can really destroy your mental health after a couple years. Finally, don't isolate yourself. Healthy relationships are apparently important for staying sane.
Appreciate what you have. Good careers are incredibly hard to get back if you happen to fall off the train. You're becoming a master of an extraordinarily lucrative field - most people can't say that. Wish I still could.
2
u/AppleNerd1998 Mar 16 '21
Thank you. Your comment means a lot to me. At 36, you’re still incredibly young and despite what you make think, You’re never too old to jump back into something, even if you were out of the game for a bit. I pray that God gives you your spark & passion back! Coding really is a fun thing to be apart of at the end of the day.
29
u/The_Amp_Walrus Mar 16 '21
walk in morning before work
midday walk
7
u/CrimsonBolt33 Mar 16 '21
Sometimes the simplest solutions make the biggest impact...balance is key, exercise and diet are often overlooked.
4
u/Dornith Mar 16 '21 edited Mar 16 '21
When I was a master's student, I used my car once a week to get groceries. Everything else was walk or bus.
And I would walk frequently. Always got lunch off campus, walk between classes, walks to visit professors, walks to visit friends. Just move around a lot.
Edit: swipe type found just about every word remotely similar to walk.
1
21
Mar 16 '21
Short answer: Don't spend 12 hours a day in your chair.
Every morning I take a two or three mile walk before work, and another after lunch. I also have a standing desk and a treadmill, so I can walk while working. Between my indoor and outdoor walks I try to go at least ten miles a day. I carry my camera with me for the outdoor walks, looking for birds or bugs to shoot, and so I get outside and put some time in on my hobby almost every single day.
10
u/ACoderGirl Mar 16 '21
like I’m sure many developers do stuck in a rut where they spend 12+ hours in their chair
Yeaaaah, no. That's not the norm, outside of maybe startups and the game industry.
None of my jobs have ever asked I work more than 8 hours a day (noting that I specifically avoid startups). My current job puts a strong emphasis on work life balance, with managers and peers outright telling people to try not to work too hard, incentivizing taking vacation days, and giving extra time off this year.
1
3
Mar 16 '21
crossfit, yoga, meditation, adventure races, walks, talking to people in real life. sitting down at the dinner table for meals. stretching. <--- big one.
organize yourself better. spend more time planning your work so you can spend less time doing it.
2
Mar 16 '21
First, get a standing desk and switch between sitting and standing throughout the day. I was not taking standing desks seriously until my employer got one for everyone. Very soon after, I've got one for home as well.
Second, just don't spend 12+ hours in front of a computer, and spend as little as possible (even 0) on weekends. Sure, it means no big demanding personal projects. That's the price you pay to keep your sanity.
Also, don't work overtime, and use up every single vacation day that you have every year. If your employer has any additional flexibility options that let you increase your vacation or decrease your hours, consider using these too. If your employer's practices are not compatible with good work-life balance (for example, a non-negligible amount of overtime work is expected), change employers.
0
u/Cybyss Mar 16 '21
I don't doubt the physical health benefits of standing desks, but it does feel nerve-racking when the person behind you stands up in their cubicle and is now constantly looking over your shoulder as you're trying to work.
Does nobody else get extreme anxiety from having others watch them work?
1
Mar 16 '21
Nowadays I work in an open space office, so there are multiple people who can see my screen. My desk is facing the wall so I can't see anyone else's screen (I hate visual distractions so I specifically asked for that desk).
I had screen anxiety as a teenager, but having 3 roommates in my university times taught me that basically no one cares what's on my screen anyway, the same way I don't care what's on other people's screens. I won't recommend getting 3 roommates, but maybe therapy could help?
2
Mar 16 '21
My solution was the same as before the pandemic: I have a gym trainer who I train three days a week with. (She was let go at the end of last year, but I've been training with her in her garage since then) This has been crucial to keeping me active and healthy. I don't know how hard it would be to get a trainer for yourself right now, but I think a lot of gyms have procedures to keep training customers.
In addition, I limit myself strictly to 8 hours of work a day. If I don't have enough free time to myself, I find myself getting burnt out. I don't know if this is something you can get away with at your current job, but I personally feel like everyone who can do this should, as we as an industry really need to start working to set better work-life balance expectations for developers.
1
u/SUMtimesICode Mar 16 '21
If you can get in a feedback loop where you reward yourself with walks or coffee at a local place - i've found this helps me a ton.
Also you can pick up a "pen and paper" habit where you lay on the couch for a while and sketch/write out ideas.
The last thing - which I don't necessarily recommend - is to pick up a mild smoking habit, like vaping, to stand outside and do for 10 minutes as a break.
1
Mar 16 '21
Small things like a standing desk or switching out the chair for a yoga ball for a bit helps me.
1
36
u/nzre Mar 16 '21 edited Mar 16 '21
That's generally how people burn out. There might be people who are fine spending half their day programming, but I'd imagine most of us find it unsustainable. Lack of work-life balance is something I usually see happening with younger folks straight out of college. It takes a bit of being miserable for them to get better.
I get it, I was hyped for my master's and tried to squeeze in as much time during the weekends as I could to work on my thesis, but I don't recommend you spend your weekends programming, even if it's something you think you find enjoyable. The burnout is still there.
Get a standing desk :)
Overall, I just recommend you work/program/write less and during fixed hours, don't let the hype stretch your sessions into the night. For your job, if you're paid to work 8h, work 8h, no more, no less. If that doesn't work, move to Spain 'cause they're testing 4-day workweeks :)