Live data from Hacker News

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

news.ycombinator.com

281–290 of 534 posts

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

#281
You might also be bored out of your mind. The first couple times you saw such badly designed and implemented big balls of mud you might have found it a welcome challenge of some kind, something to prove your skill among your peers.

Now, after having attended conferences, after having read the books and admired the best codebases, those developed in companies than care and are proud of their DevEx; now you see it for what it is after all, shovelware.

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

#282
42 and I feel the same. If I dig more into what led to this, I can identify two events:

1. Covid. My number came up in September 2022. The mental fog is real and is not what generally people think it is. For me it surfaced as diminished short term memory (example, write down a phone number you see one a website. Before covid, it’d take one or two looks. After covid 3-4 looks back and forth. Hand in hand with this - affected executive functioning. In other words, you just feel dumber lol

2. Burn out. It starts with lack of energy, low executive functioning and progresses into depression and/or anxiety. If this applies to you - get help. Make changes. This one you can fix.

Somewhat related, 41 was the age I realized I don’t want to drink again. Some people have this moment earlier, some never. 1.5years later, the feeling is freeing and awesome. I was not a heavy drinker before but lately I was less and less enjoyable with more hangover (and irritability) the next day.

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

#283
post #17

I don't know you personally but I doubt cognitive decline has anything to do with this. As we age, we usually end up with more and more life responsibilities, beyond just the work we are doing. All of that is input to the brain and requires energy in response. The brain is not infinite. I often feel as you do, but then I have periods where I am as light and agile in my productivity as 20 years ago, maybe even more so…

I'll second this. Based on my own experience (I'm 50) it's all about energy levels. When my energy is high, I can code like I did two decades ago. Probably better. I guess the difference is that in your twenties, energy is almost for free. As you get older, you've got to be smarter about it - all the usual things - diet, exercise, avoiding stress... Not that I'm good about those things - I do OK but not great. Someti…

I had unlimited energy till about 40 and then I hit some sort of cliff. This coincided with covid and being indoors using high velocity media like reddit/insta. I am not sure how much is age and how much is habits that caused this.

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

#284
I’m 26, for context.

When I use to eat sugar like a madman, I use to feel just like you, so perhaps there could be other factors impacting your mental sharpness.

I have a few questions for you to answer to yourself:

1 - How fit are you? (Cardio and strength) 2 - How is your sleep? 3 - How often do you practice programming / play with greenfield software projects outside of work?

There could be more questions, I am not a specialist, but I have felt just like you described when I use to eat more sugar-based food than I was supposed to.

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

#285
I agree: I'm 58, and I'm not as sharp as the twenty-year-olds, thirty-year-olds, and even forty-year-olds that I pair-program with. To be more specific, the younger developers seem to have a certain mental elasticity that is now beyond me: they can store more in their short-term memory, and they grok code faster than I do.

My brother, who's 18 months my junior and a developer like me, shares the same sentiment: "It's like I used to have 20 registers, and now I'm down to 12".

It's comforting to believe that age hasn't diminished us, but working directly with my juniors has disabused me of that notion.

I feel that Tennyson put it best when he said, "Though we are not now the strength which in old days moved earth and heaven, that which we are, we are."

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

#286
post #17

I don't know you personally but I doubt cognitive decline has anything to do with this. As we age, we usually end up with more and more life responsibilities, beyond just the work we are doing. All of that is input to the brain and requires energy in response. The brain is not infinite. I often feel as you do, but then I have periods where I am as light and agile in my productivity as 20 years ago, maybe even more so…

As a 45 year old lead developer, this is the answer that I most align with. Not only are job expectations a bit higher than 20 years ago (ie, back then you could just say "I'm still workin on it" but today you generally have to give progress reports at least daily and have your velocity tracked), but at this age, my time can be strictly regimented (exercise, chores, caring for the animals, appointments, helping in the kitchen, doing actual paid work...) from before-sunrise until almost midnight. I'm not quite sure what happened to the days that seemed like I had a whole ocean of time, but even writing this reply is a bit much. Give yourself some grace. Afternoon siestas are a great idea if you can sneak them in.

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

#287
I've experienced similar things and always put it down to boredom. My younger self might still have found it interesting and novel. Now I just view it as a chore. I've lost some of that intrinsic interest which I think contributes. If I work on more interesting problems the issue is less pronounced.

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

#288
post #222

Earlier quoted context omitted.

Hmm. Do you think we will ever get a pill to replace exercise?

Exercise is a source of enjoyment, why would you want to replace that?

> Exercise is a source of enjoyment, why would you want to replace that?

I wish I felt like this. Exercise is tolerable when I'm doing something at the same time (walking, chatting, listening to music) but that's enjoyment despite the exercise, not because of it.

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

#289
How are you breaking this problem down? I'd suggest stubbing out the endpoints as a skeleton with their respective HTTP verbs so the API contract is what you start with.

Then pick an easy endpoint and start to implement the code. Follow this through for the rest and add tests as you go. You'll probably want to adjust some of the app structure and maybe do small refractors to help keep things organized when you get there.

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

#290
post #155

Nah, I think your expectations are wrong. No matter how good you are, nobody is good enough to port an API like you are saying it, by memorising or thinking 9 levels deep. Humans aren't designed for this kind of tasks. Instead, you should take steps to understand the parts that compromise the abstractions that make up that API and implement it. Also have good test coverage from both sides, so you make sure you are im…

There's a lot of good, generic advice in this thread, but this is I think the right answer. I specifically scanned for one like this. What OP is trying to do is quite literally impossible. Not even the best chess players in the world can hold such a big (decision) tree in their heads _at once_. And they might be the most extreme data point we have on this matter. The way we humans compute needs to be supported by bre…

I second that. Without taking notes/diagramming no mere mortal can handle nested 9 levels just in the brain. And somehow I doubt that the OP colleagues are doing just that either. The diff between people being stuck and progressing is often how much and how smart they writings things down.

My suggestion would be to try to tackle the low hanging fruits first: find the parts of the lowest complexity, try to understand these and get the simplest things done first. This will also restore your confidence.

Post reply on HN