r/AskProgramming • • Sep 23 '20

Other A question for 8+ years programmers in the sub. What are some regrets you have in regards to your health and lifestyle throughout your years of programming?

If you could go back in time to give advice to your younger self what would you say?

71 Upvotes

59 comments sorted by

62

u/[deleted] Sep 23 '20

Sit correctly, be aware of your posture. It will come back to haunt you, that's a promise.

Take regular breaks. 5 minutes every hour at least to combat carpal tunnel / RSI. Also do hand exercises like the ones in this video for example.

All nighters might seem fun at the beginning but they will take a toll on you. Keep them at a minimum or better, just don't do them at all.

Programming can get insanely frustrating and sometimes insanely addicting. In both cases, a break might be advised (in case of frustration the duck method might be good). Keep a balance between social life / programming. I will repeat the last one. Keep a balance between social life / programming.

7

u/hartfordhobo13 Sep 23 '20

CORRECT YOUR POSTURE EARLY!! I now have constant headaches from my posture sitting down for years. The issues now pull on my posterior muscular chain all the way up to my head causing me daily temple headaches. Never thought they were from issues with my lower back due to sitting down slouching for a living

4

u/DreadedEntity Sep 23 '20

Try getting a posture corrector. It goes on like a backpack(without the pack) and feels great

1

u/hartfordhobo13 Oct 09 '20

Yeah chiropractor has me doing workouts to strengthen my posterior chain, I hit the gym a lot but my back-side was lagging Vs my strong front pulling everything forward plus being hunched over in a chair all day as a code-jockey doesen’t help

1

u/hartfordhobo13 Oct 09 '20

Gonna try that standing desk at my next role (hopefully full remote) - the ones that can lower when you want to sit so I’m not stuck standing all the time

2

u/[deleted] Sep 24 '20

[removed] — view removed comment

3

u/DreadedEntity Sep 24 '20

You still have to use them. It’s not supposed to keep your posture correct for you. It might be able to, but I don’t think that’s what it’s for. It’s more like it reminds you whenever you start to slouch because it gets tighter as your posture relaxes

2

u/[deleted] Sep 23 '20

That is indeed a problem running through all people I know that work with computers over longer periods of time (back pain, headaches, neck pain, strained eyes, bad posture etc.). Unfortunately most of us start taking our health seriously when the first signs show up, usually the damage is already done at that point. There are, as far as I know, things to make it better but it won't be as good as having taken care of your health in the first place. Not a medical professional though, just a programmer obviously.

0

u/[deleted] Sep 23 '20

[deleted]

5

u/knightofren_ Sep 23 '20

I can only recommend it more. I've fucked up my lower back in a different way, but being a software dev means they won't get any better. So I started lifting more intensely. Gain muscle mass people, deadlifts and leg workouts are king. The more and better muscle you have in your lower body, the more it will naturally keep your posture proper.

1

u/hugthemachines Sep 24 '20

I had some back issues too, I got some boring but effective exercises from a physio therapist and they worked wonders. Only hard thing is to keep doing them since they are boring.

1

u/knightofren_ Sep 24 '20

Transition into a gym maybe?

2

u/hugthemachines Sep 24 '20

It is a good idea, I went to a gym for a while but I kind of just got bored of that too and I don't have time to do more more fun and engaging sport activities, unfortunately. I feel like I managed to change my mindset a bit though. I try to keep telling myself something along the lines of "I am one who trains." as a focus on my role rather than "I am a lazy shit who must do this boring thing that is training".

1

u/knightofren_ Sep 24 '20

First thing gym forces you to understand is that the first and biggest struggle comes from within. When I force myself to go to gym, workout, on days that I feel that I hate life and gym and everything, I feel like I won a battle against myself and it feels good to conquer your bad qualities.

30

u/RookyNumbas Sep 23 '20

Around 30 I finally started taking better care of myself. The 3 most worthwhile changes that I wish I started earlier:

  1. Strength training. Went from a skinny guy with shitty posture and lower back pain to looking and feeling way better. The wife definitely approves. Seriously, do it.

  2. Meditation. Great for dealing with stress and mental clarity. The Mind Illuminated is a great, no nonsense book.

  3. Standing desk. Humans were not meant to sit for 10+ hours a day.

7

u/rnsbrum Sep 23 '20

I started strength training too. I used to fit that nerdy programmer stereotype perfectly, but ever since I started taking strength training seriously, I improved in everything, socially, looks etc... Now I feel kinda out of place because its unusual to see a very fit guy coding away lol

3

u/YourNightmar31 Sep 23 '20

I want to start strength training. How do you start? What did you do? I have no idea where to start. I'd rather not go to a gym or something like that.

6

u/rnsbrum Sep 23 '20

Well, it all depends on your starting level. I think of the gym as an MMORPG, where your lifts determine your lvl and your gear is literally your own body.

So, lets suppose you are lvl 1. As in any MMORPG, you will be put in a starting zone, where you will find mobs that are in your lvl. As you progress and get stronger, you will have to venture the world and find stronger enemies. Its all about that progression.

In strength training, your starting zone is going to be body weight exercises, you can do them anywhere and start right away. Push ups, pull ups, squats, abs, etc... There are a lot of them. Look up online some workout routines using only body weights, or do the ones that you enjoy the most. At first its going to be hard, you won't even be able to do one pull up or 10 push ups, but as you get stronger, it gets easier. At first, do 2 days in a row and then take a day off. 4 sets of how many reps you can do in every exercise. As you get stronger, you won't need too many rest days, so you can do 3-4-5 days in a row without resting.

Once you feel like you've built a "base" of strength, you can join a gym. Thats where the true game begins. There are 3 main lifts in the gym that are going to determine your progress, and that is the BenchPress, Deadlifts and Squats. Once again, you are going to start low, and level up from there. In the gym you can train pretty much everyday, because there is a lot of equipment that allows you to isolate body parts, so in one day you can train chest, then back, then shoulders etc...

Its not only pain and suffering though. There are rewards! As you get stronger, you will notice your body feeling more tight, your posture gets better, you sleep better, you become more confident. When you becomevadvanced enough, people will notice your gains and will treat you with more respect (thats something that I've noticed), just like when you get that epic gear in an MMORPG lol.

Another very important aspect of strength training is nutrition and rest. You gotta feed your body with quality food and macro nutrients so that it has the resources necessary to repair itself. That is eating enough protein and carbs. And you must have quality sleep so that it can do those repairs. You grow while you sleep, when you are lifting you are tearing down your muscles, when you sleep it rebuilds itself a little bit stronger.

So, to summarize: Start with body weight exercises, build a routine and make into a habit. Once you are strong enough you can join a gym and start lifting weights. Keep in mind that nutrition and rest play a big part in your progress. Its gonna be hard and boring at first, but it will feel AWESOME later on when you start seeing your rewards. Rewards will only spawn after 3-6 months, it takes time to see changes in your body. You will have to do some research to understand how these things work(how to properly execute exercises, how to eat right, how to get better sleep, how to build workout routines etc..), but I promise it will pay you a thousand fold.

Good luck in your journey buddy. Have a good one.

1

u/bouco Sep 24 '20

Focus on Technique. Don't feel bad if you go down 10kg in deadlift or benchpress if you do it more strict. Do it, learn what muscles that should work during the exercise. When you get better, you can start doing it a little bit more losely, not rocking or bouncing it up.

Anyway, technique is everything.

Then hard thing for me is to get my ass to the gym. When I'm there everything is fine, but getting there...

5

u/[deleted] Sep 23 '20

I just got a standing desk (actually, a desk adapter for my home desk that lets me stand). It is nice. However, humans are also not meant to stand in one place all day. If you told me 5 months ago I'd spend all day at home kinda dancing in my pajamas... well, I'd assume the thing that went wrong had more to do with my mental state than the state of the world.

Anyway, what I mean to say is, anyone know where to get a good workbench-height stool? Bar stools are a little too short. I really just want something to lean on occasionally. I feel like everyone's grandpa had one of these in his workshed, but they went extinct some time in the last 30 years.

23

u/myusernameisunique1 Sep 23 '20

About six months into my first job I decided that working more than ten days consecutively was going to burn me out eventually and I decided there and then that I would never work that long without a days break. It wasn't always easy, some clients and employers still put a lot of pressure on when deadlines are tight but I credit the fact that I am still a happy programmer 25 years later with that single decision.

3

u/embar5 Sep 23 '20

Did you feel behind when deciding to work on a Saturday and Sunday? Did you feel like your job was at risk or your manager would be upset if you missed a sprint? Just asking so I know what to expect myself, feelingswise.

7

u/myusernameisunique1 Sep 23 '20

I didn't really feel like I was behind, for the most part it was just knowing that there wasn't enough time to finish what needed to be finished. I would work a whole weekend and by Thursday or Friday of the second week I'd be a zombie, just staring at my screen unable to work and I realised I had to take a break.

When you're a programmer you really need to learn to say No to unreasonable requests, and most of the time it not an issue. Tough managers will tell you to do 10 things knowing that there is only enough time to finish 5, but they do it to put pressure on you. Agree to do what you can do and say No to the things that you're not going to finish. They aren't actually expecting you to finish everything anyway.

5

u/fertadaa Sep 23 '20

Highly dependent on your employer. Some employers are going to have the startup mentality even if they aren’t a startup. Some are assholes. Others recognize that if you let your employees decide when they want to work and leave them alone, they excel. Seek the latter!

12

u/[deleted] Sep 23 '20 edited Sep 23 '20

I think the most frustrating thing is not understanding how equity works early. Equity is designed as a heads-I-win-tails-you-lose for VCs. If your startup fails, VCs will strip mine the company for every dollar. If your startup wins, VCs and maybe your CEO will take as much power and control of a company as they can.

Employees are just pawns.

I believe early in my career, I was really excited that stock options and equity can be life changing, but after 10 years, I have nothing to show for them. They were a complete waste of time. I could have made more money taking the opportunity cost of lost wages and investing in Bitcoin. It's frustrating because I, like many other younger employees, got really excited to work hard and stay up late, essentially to make other people rich while I never see anywhere close to the millions the company generated, even though in many cases, while I was replaceable, sticking around was far better for the company than me. I spent a lot of time assuming, "If I just learn X thing then Y thing, I'll get promoted and live well and retire early." Yeah it's just wrong. You really need to just play politics in an early enough company.

Looking back, knowing that, I think I would have prioritized really early startups and took a lot of contractual equity and played more politics, or just worked for a regular company and had a pretty steady job. I'm far better now at negotiating these situations and making sure I'm winning now, but I'll never ignore this. Its not at all about being a better programmer, and not playing politics is a death sentence to your career, or your finances. Again, learning how equity works was fundamental. I would have seen a lot of snake oil early and identified garbage deals faster. Never again.

1

u/bluefootedpig Sep 23 '20

I have a slightly different view, I have only been given a chance to buy stock in two start ups. One I bought every last penny, because I knew that they were a cash flow machine. It was 5 of us working, and making like 10M a year. I wasn't a founder, but I bought every last share, and negotiated hard to get more shares.

The other company was a little larger (30 people), and their technology was having trouble competing. Thankfully I could decide to buy all my shares (or a portion) when I left or after I was fully vested. When I left, the pandemic just hit, so I ditched out and my understanding is the company is having trouble finding funding.

So those are my only two stories, and I guess my point is to look at the money they are making, and if investors are eagerly buying up shares. Also, if the company fights selling shares can be a great indication that they want to sell.

On the company that sold, I made 7x my investment over 3 years. Investing in a start up is a high risk investment, but if it pays off it pays off very well.

2

u/[deleted] Sep 23 '20

Hearing you but I missed a certain point too, learning equities early means I probably would have made better choices about who to work for. Your 5 person startup sounds like the kind of company I'd want to work for now, but early in my career I probably would have said that's a shitshow to the 30 person company with a candy machine. That 30 person company probably would have had generally higher salaries compared to the field, and a "stellar options" package, but as you said, eventually it can spiral into shit. Also, VC games generally mean in a dire situation, they get paid first, so those options, when I made them, are now worth nothing.

I know it pays off well, but my point is, with the right education early, I probably wouldn't have wasted my time with half the companies I did end up working for too. Just learning about how it works probably would have put me in a position to identify better companies early on. Unfortunately at the time, I was more focused on learning new technologies assuming that was the key to success. It wasn't.

2

u/[deleted] Sep 23 '20

The problem for me as a junior is that I feel like I can’t really be selective, especially in the current economy. I’ve worked in tech before (not as a dev, but still) and seen all the stupid startup bullshit while they were getting into the VC games so I know in some sense what to expect.

I probably don’t understand things as well as you but it’s already so hard to get a job for someone like me. I feel as though I’ll have to knowingly get screwed over a bit and then jump ship when I have more future prospects. Unless of course I just get lucky and somehow land a decent gig.

2

u/[deleted] Sep 23 '20

Yeah it's pretty lame. I recently transitioned to consulting and that's worked out well. At least there, job hoping is kind of the point.

10

u/CorstianBoerman Sep 23 '20

After the first five years I have been working as a software developer I burned out (2 years into my recovery now). Even though the job was not directly the reason for the burnout, it was a contributing factor which taught me a lot about workplace dynamics, and has defined the way I look at the software industry now; some things I learned the hard way;

  • Don't even try to make estimates on novel innovations early on in your career. You'll miss the mark by a huge margin. There are better ways to communicate progress with team members and management.

  • Dream big, have a vision, and do not try to waste time solving small problems. If or when you keep working on details, you'll miss the big picture. Do not let others pressure you into resolving small superficial issues without giving you the space to solve the root cause of these issues.

  • Keep it simple. Design software for change. It's nice to have something which can do it all, but you cannot do it, at least not now. Things will change. Plan for change.

  • Always make sure there is someone on the team who's smarter than you (in some regards).

  • Take a mental health day off every now and then. Your brain is your most valuable asset. If you don't feel like working, don't try to fool anyone (including yourself) by showing up and just spending time.

  • Do some physical exercise to balance the mental strain put on you by your job. Personally I believe physical exercise should be partly done during workhours, but that's another story.

3

u/nickydraz1994 Sep 23 '20

The mental health day is huge. I randomly took some time off a couple months back, just because I had some extra PTO banked.

Spent most of my time doing yard work, ignoring my email, and it felt wonderful. Was so refreshed by the time I went back to my desk a few days later.

6

u/bluefootedpig Sep 23 '20

Ergo is important, and don't skimp on the chair. In fact, don't skimp on your setup. Be a /r/pcmasterrace of a workstation.

Otherwise, I would tell anyone else that a huge thing you can do is watch youtube lectures of software conferences. You will learn the new stuff, which will one day affect you. I learned of microservices at least 5 years before the first company I worked for was wanting to use them. It helps to be up to date on technology. You don't need to know how to do it, just know it exists and why.

5

u/BlueFootedBoobyBob Sep 23 '20

Loyality doesnt pay. Every two years have a Look around.

Leave toxic places early.

If the Deadline can only be held by Overtime, your estimation was shitty

If you Crunch, that will Set the expectation for the next time.

3

u/zultdush Sep 23 '20 edited Sep 20 '25

no thanks

3

u/r3jjs Sep 23 '20

Ease off on the sugar and caffeine!

Type 2 diabetes isn't worth it.

3

u/GLStephen Sep 24 '20
  1. Don't use accommodations like overly specialized keyboards (i.e. Kinesis) early. Fix your posture and other things first

  2. That fancy sounding rectangular mechanical keyboard is complete shit for ergonomics

  3. The Microsoft Sculpt keyboard really is the shit. Buy 3 at a time. They wear out faster than mechanical but they are MUCH better for ergonomics.

  4. Set your home and work desks up differently. Multi monitor? Put the second on the left at home and right at work. Use a different mouse. You're fighting wear. Think about bearing rings. They wear where the pressure is identical all the time.

  5. If you don't have to use a numpad... ditch it and get the mouse closer.

2

u/DeluxeCanuck Sep 23 '20

+1 for lazy posture

+1 for bad sleeping habits

+1 for not taking proper breaks (both throughout the day and full vac days here and there)

2

u/snot3353 Sep 23 '20

All the ergonomics and conditioning comments are great but make sure on top of those things that you GET REST. Give yourself breaks, listen to your body when it says it wants a break and get a full nights sleep. It will make such a difference and I wish I had done this earlier.

1

u/[deleted] Sep 24 '20
  1. Soda / Pop is poison, just don't do it

  2. The users are just trying to get stuff done, they aren't stupid, nor evil... they just come from a perspective you might not remember or understand

  3. If you have doubts, ask questions, don't make assumptions

  4. Poor grammar, spelling and composition leave a bad impression, work on it.

  5. Walk every day, to/from work.... keep active.

  6. Don't let your wrists get injured, avoid RSI

  7. Learn how to do everything with just the keyboard.

  8. You do understand how Git/Github works, don't you? (We had .zip files on floppy disks, GIT is orders of magnitude better, Git blame is amazing, we couldn't have do it back then)

  9. Know and understand the 2 hardest problems in programming

  • Naming things

  • Cache invalidation

  • Off by one errors

Good luck!

1

u/sunotlac Sep 23 '20

I think 99% of developers are 8+ years, or the kids are really smart nowadays.

3

u/[deleted] Sep 24 '20

[removed] — view removed comment

2

u/sunotlac Sep 24 '20

Great, now even kids will be stealing my job...

1

u/[deleted] Sep 23 '20

Minor thing but, place monitors slightly up over your sightline. Looking down for 8 hours creates bags and wrinkles under your eyes and makes you look older quicker

You can try this at home. Look into a mirror and move your chin upwards while maintaining looking forward. You'll see the creases that will appear over time

So that means typing down on a laptop is a big no no

2

u/[deleted] Sep 24 '20

[removed] — view removed comment

3

u/[deleted] Sep 24 '20

Keyboard plus a laptop stand is ideal imo

1

u/codeOrCoffee Sep 23 '20

Monster/redbull taste good and give you the energy to power through the night. Do not do this. Any code written during this time is will need to be redone.