Live data from Hacker News

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

news.ycombinator.com

191–200 of 534 posts

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

#191
post #10

I've experienced this periodically since my early 20's - generally in hindsight I realise it was: real life getting in the way, burnout, lack of interest (I was interested in the idea, but on some fundamental level - not the activity) - also occasionally just a feeling of Groundhog Day (ie. Some code tasks can just feel a little too familiar - even if novel, and that saps my joy) Either way, at the time it was quite…

It could also be attention span problems caused by social media.

Or ADHD

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

#192
When you wake up in the morning do you feel rested? Or are you still tired?

Others have already mentioned this but I think it's important to reiterate sleep quality. I learned I was not getting enough oxygen at night due to congestion when I went to the doctor for problems with tiredness and brain fog. Taking nasacort each night before bed completely changed my life.

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

#195
I know the feeling. I'm 62 and I can't go as long or as deep as I once could, but I've changed my strategy over the years and although I'm not as fast as I once was I'm still pretty productive.

What I do is log virtually everything I'm doing in an editor window that I keep open all the time (one file per project/task). If I get disturbed by a call or a colleague, I can do a quick recap and get back to where I was. Likewise if I lose the plot several levels down my stack. It also helps if I need to switch projects for a while, or overnight.

It's like a running log of my thought processes:

- Need to add feature x to module y

- What docs have I got?

  - How to file in d:\projects\docs...

  - Log file from 13/03/2021
- What routines are involved?

- a,b,c...

- Looking at A

   - I'm thinking of adding a new parameter

     - Who else calls this?

       - Routine F

         - The mod would be straight forward there.

       - Routine H

         - This is called by S

           - This needs more thought, it might be chewy

     - What SPs are involved?

       - UpdateCustomerTable(CustName, Address1...)

   - I've backed up the database to ADB_20230110_1501.BAK so I can test.
What it does for me is offload the requirement to remember the previous levels and lets me concentrate on just the one or two things I'm looking at. As I come back up my stack I re-read what I was planning to do next. I use an editor (UltraEdit) which allows me to collapse things I've dealt with so I can see the wood from the trees.

I keep the log files, which go back over 20 years and can be invaluable next time I have to look at the same project months later. Reading the code AND my notes helps me re-build my mental stack much quicker. It also helps with any bugs that I introduce.

Good luck. It is possible to be productive at an advanced age, and still enjoy it too.

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

#196
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…

When I was 40, I think my cognitive capacity and coding ability was pretty good - possibly peak. By the time I was 60, I found learning new stuff (especially languages and frameworks) hard; but that was partly or wholly because I didn't regard learning new tricks at that age to be a good investment of my time and effort, since I'd soon be retiring.

Since I retired, I have suffered a cognitive decline; everything takes longer. But, you know, I'm retired, and work expands to fill the time available.

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

#197
My first question would be: how do you sleep? In terms of enough hours but more importantly also the quality of your sleep. Find a way to measure it if you don't know, and of course be brutally honest with yourself.

Sleep is a game changer in cognitive abilities and it can swing either way.

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

#198
post #28

Earlier quoted context omitted.

Also, our standards improve as we age. I wrote a lot of high-energy seemingly clever code when I was younger, but it was nonsense and terrible to read. Now I would not allow myself such indulgence, and so I work differently, maybe at times more slowly, and it might seem this is due to less abilities, but actually it is due to wiser experience.

It turns out the same dynamic is at play with songwriting - your standards get higher, what seemed novel when you were 20 now seems boring. I’m sure it is the same across disciplines. The irony is, it kills creativity.

I have not heard this take but it does seem plausible. What to do about it ?

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

#199

Could be burnout, could be ME/CFS, could be Long Covid… could be something else. Have you noticed a limited working memory or loss of enthusiasm? You might notice things like forgetting why you walked into a room, or abandoning hobbies and activities you no longer enjoy. I have ME/CFS from hEDS (far more common than people think, especially here on HN, and double especially those here on HN with ADHD) so I ended up t…

These treatments are legally unavailable to many Americans, due to bullshit moral panics.

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

#200
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 we age, we usually end up with more and more life responsibilities As somebody who far away from 40, how is one supposed to "look forward" to getting older given this likelihood?

They are first world problems and if you read carefully everyone who has gotten responsibilities chose them and they are very happy for it.

It's just the mind's way of coming up with problems when there aren't any.

Post reply on HN