Live data from Hacker News

Ask HN: I'm 40 and feel my mental ability declining. Programming seems harder.

news.ycombinator.com

111–120 of 534 posts

Re: Ask HN: I'm 40 and feel my mental ability declining. Programming seems harder.

#111
Design: top down Implement: bottom up

In my experience, certain tasks are not challenging and I really don't want to do them. I have a system for when things get this mundane. A pad of paper, and 3 pens, blue, red and green. I write down the next 5 or so things I need to do to make progress in blue. Really nitty-gritty when needed ('search list for target value', etc) Optionally, if needed, I put a green dot (instruction pointer lol) next to the current line in the list. When the line is complete I joyously scribble over it in red and get to the next thing. Repeat as needed.

Re: Ask HN: I'm 40 and feel my mental ability declining. Programming seems harder.

#112

40 has nothing to do with it. Every other day I see a Ask HN post from younger people bringing up depression, burnout, and apathy. Listen, there are 60 year olds that look like our long held image of a 60 year that can barely walk or do anything. And then there are 60 year olds that go to the gym everyday. How do you want to play this? I don’t accept your premise that 40 has anything to do with it. Being a miserable…

There's a lot of biology in the mix here to that must not be dismissed. But I like your take. Do everything reasonable to continue forward and maintain your body and mind. Just don't completly ignore your genetics and biology and be open that they might speak-up and have a say too.

> Just don't completly ignore your genetics and biology and be open that they might speak-up and have a say too.

They may have a say, but ultimately you can only try to deal with the cards you’ve been dealt. At least I wouldn’t just accept that I’m genetically predisposed to misery with no way out.

Re: Ask HN: I'm 40 and feel my mental ability declining. Programming seems harder.

#113
I ran into this problem after salmonella at the age of 28. Cognitive decline occurred after some serious headaches. I had to re evaluate everything. I had to relearn how I took notes. I had to understand how I remembered things. I could no longer work as radial as I used to. And had to switch to linear mode. I had to break down tasks from "intelligent people only" mode to "anyone with a brain".

Of course there were other problems that prevented me from doing that like mental instability. But the whole process took a while. A couple of years.

Re: Ask HN: I'm 40 and feel my mental ability declining. Programming seems harder.

#114
I struggle with certain type of tasks (age 30) but for something like this I'd literally print out the code and go through it line by line. I find it's easier to visually parse the connection between bits of code. Otherwise, if I don't have a printer, I'd just open a ton of VScode windows on my giant monitor, which I have mainly for this purpose, or write it out slowly in a sketch book.

For me, I used to be very good at CSS, but I'd always fall apart when needing to actually sit down and write the code. That's largely still true, but haven't really kept up with the css spec that much in recent years.

Re: Ask HN: I'm 40 and feel my mental ability declining. Programming seems harder.

#116
Hey, I always tried to avoid leveraging my memory when doing tasks.

It's fine to hold no more than 2 levels of call stack in your head. Most devs have a very hard time tracking more than a couple of variables.

What I can tell you: write lots of notes. Break the problem in smaller ones and take notes about the problem itself. You don't need to "hold" anything in memory, write it down.

Re: Ask HN: I'm 40 and feel my mental ability declining. Programming seems harder.

#117
At around 40 my interest in actually writing code declined sharply. That was after doing it for 30 years, and after it hadn’t really been challenging for quite some time. At the same time, my interest in the “big picture” increased at least as much.

I found that I was much more interested in how the work impacted customers, how we could work more effectively as a team, building relationships across the company I am at, etc.

At 48 I switched from programming to managing. It was a good move for me. I don’t love managing the way I once loved programming, but I periodically reassess and realize that although it’s fun to take a day and write some code here and there, I would be pretty miserable if I were to go back to it full time. I would constantly have to find ways to motivate myself to get anything done.

I do still take those days sometimes and write code for our product, but keep myself off the critical path at all times.

Management may or may not be for you, but it’s something you may want to consider. I wish I had moved over sooner.

As an aside, I had read in my twenties about a theory that claimed something happens physically in our brains as we age that explains this phenomenon of greater interest in the big picture and less interest in detail-oriented work but I have never gone back and tried to confirm or learn more about that theory.

Re: Ask HN: I'm 40 and feel my mental ability declining. Programming seems harder.

#118
The cause of this could be many things, but one thing is for sure: worrying about it only makes it worse.

My advice would be to visit your doctor, asks for a general round of blood tests to check everything is okay, B12, liver function, cholesterol, kidneys, etc. Do the lot. If they show something isn't normal then you can focus on dealing with it, but just as importantly, if the results don't show anything you can rule out your physical health as the problem and focus on other potential causes.

I'd place a small wager on learning you have a clean bill of health helping you get out of this slump, or could go a long way to getting your mojo back.

Best of luck!

Re: Ask HN: I'm 40 and feel my mental ability declining. Programming seems harder.

#120
Don’t hesitate to change your work style to include more quick notes and simple diagrams scribbled down to keep your mental stack at a minimum. This helps a lot, it’s maybe unnatural at first to get used to but it helps to keep your mind more focused and calm.
Post reply on HN