News for hackers. Stuff that matters.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by jb1991 on Tuesday January 10, 2023 @09:15AM (#34325119)
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, and usually it is my life circumstances that are the culprit.

I remember once about 13 years ago I was working on a mobile game and had a similar problem as you describe; there was one day where the technical work seemed to overwhelm me and I felt inadequate. But I was just a young chap, and it was a passing moment -- I had indeed just taken on some enormous new life responsibilities at that time, which were the likely explanation.

Burnout is real, too, and giving yourself space (if you can) to relax and not think about work for a break can be quite useful to recharge.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by jb1991 on Tuesday January 10, 2023 @09:19AM (#34325165)
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.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by LastTrain on Tuesday January 10, 2023 @09:21AM (#34325205)
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.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by obituary_latte on Tuesday January 10, 2023 @09:44AM (#34325561)
Does it though? I often find it's fun to find new and novel ways to create things that are both clear and efficient. Creative problem solving can be leveraged anytime.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by HelloMcFly on Tuesday January 10, 2023 @10:29AM (#34326272)
I think the problem is you start saying "no" to more things (literally and metaphorically) before you've even worked the idea or given it a shot. This is purely supposition.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by LastTrain on Tuesday January 10, 2023 @10:33AM (#34326346)
That is the gist of it, yeah. You get discouraged because you can't come up with anything interesting, whereas when you were 20 everything you came up with seemed interesting. I'm just generalizing my own experience of course, and there are more things at play than just this - like I think not yet knowing all the rules has something to do with it. I try to be aware of it, and take some advice I heard once at an artist-in-residence talk: sometimes quantity is better than quality. That is, treat making like sports: practice.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by sho_hn on Tuesday January 10, 2023 @12:23PM (#34328238)
> You get discouraged because you can't come up with anything interesting, whereas when you were 20 everything you came up with seemed interesting.

This is so true. I'm 37 now, and I'm struggling with that - I'll come up with a project idea, only to second-guess myself whether it's ambitious or innovative enough, and really worth spending the limited time I have available. I end up questioning whether it would really count, or just serve as frivolous self-entertainment.

When I was younger, it was good enough that ideas were interesting or would help me achieve mastery. Once you have a bunch of well-worn skills under your belt and have plenty of options and the ability to make commitments, everything becomes just a function of effort/time and choosing what to do next becomes the biggest challenge.

I'm trying to cut myself some slack and allow myself some amount of time to pursue frivolous ideas. At least you can intentionally combine them with e.g. new implementation technologies (e.g. a new tech stack or new tools) to get important first-hand experience and maintain relevant skills (and therefore decision freedom).

I'm also hoping that some day, having kids might help me with some of these anxieties :-). If I revisit/retread older ground then perhaps to make it accessible to them at home or teach them by doing little projects together and give them a boost and allow the next generation to take it further. I.e., even doing non-innovative stuff could count, as a fundamentals teaching moment for someone else. Hope they take an interest!

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by actinium226 on Tuesday January 10, 2023 @11:25AM (#34327270)
I like to think of creativity as out of the box thinking, and as we get older and more experienced, the box grows.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by LastTrain on Tuesday January 10, 2023 @11:30AM (#34327351)
That is a great way to phrase it.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by qorrect on Tuesday January 10, 2023 @10:19AM (#34326114)
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. Prog... by lallysingh on Tuesday January 10, 2023 @10:33AM (#34326331)
Give yourself credit for working at a higher level of quality.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by LastTrain on Tuesday January 10, 2023 @10:37AM (#34326394)
Yes. Also, don't think you are too good to fail, we still learn by failing even at 50. I've said some more in another part of the thread.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by lallysingh on Tuesday January 10, 2023 @01:08PM (#34328929)
If you're not failing, you're not learning!
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by timeuser on Tuesday January 10, 2023 @12:09PM (#34328012)
That definitely matches my experience. I spend so much more time re-writing existing songs than I did when I was younger. It used to be almost entirely creating new material and moving on to create more. I wonder how much is my standards have gone up or lack of novelty in general as opposed to how much I've become attached to some of what I've created and feel it is worth polishing. Some of both I think.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by mnky9800n on Tuesday January 10, 2023 @09:54AM (#34325726)
I returned to the first project I made as a software developer after being about ten years away from it. Never do that. Haha. But it was quite educational to see how my problem solving had changed. Fortunately I didn't need to refactor everything because if I did that would have been a nightmare.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by hutzlibu on Tuesday January 10, 2023 @10:13AM (#34326010)
Yeah old code of ours, reminds me of a now old comic ...

http://notinventedhe.re/on/2011-11-9

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by tablatom on Tuesday January 10, 2023 @09:32AM (#34325379)
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. Sometimes (rarely, thankfully) my energy is so low I can't really code at all, sometimes I'm flying. I'd say by far the biggest factor is my overall state of positivity and optimism. And yeah, life definitely gets more complicated as you get older.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by shanebellone on Tuesday January 10, 2023 @10:27AM (#34326243)
I'm 33 and this describes me perfectly too. Some days are clear and sunny while others are dark and cloudy.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by arcticbull on Tuesday January 10, 2023 @10:53AM (#34326702)
I think by the time we're in our early/mid 30s, there's really not much new under the sun in programming. It was all super exciting at 10 years old since I'd seen nothing, by my mid-20s I could build basically everything. Early/mid 30s I have built pretty much one of everything or can visualize a path to doing so.

A lot of what I do at work is the same job of gluing components from vendor A to components ... also from vendor A. Gets a little boring eventually. [edit] This is why I spend more of my time at work doing organizational stuff, people stuff, mentorship and documentation/architecture as compared to how I used to spend my time.

I still have just as much fun with personal projects though.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by mythhouse on Tuesday January 10, 2023 @11:03AM (#34326889)
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. Prog... by boringg on Tuesday January 10, 2023 @11:35AM (#34327441)
Recent studies suggest that counter to popular belief our metabolism doesn't change from age 20 to age 60. There are individual factors that can certainly account for your change of energy and I would certainly look for culprits.

I recently did a big change in myself - adjusted sleep, took specific supplements which I was suspect was deficient in and have found my energy to be much fuller. Do not ignore what your body is telling you.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by EVa5I7bHFq9mnYK on Tuesday January 10, 2023 @11:55AM (#34327738)
My ex worked on a study that involved testing people's short-term memory. She mentioned a clear and abrupt change around the age of 45, though that wasn't what they studied and of course was not included in the study results. This issue is highly politically charged.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by swamp40 on Tuesday January 10, 2023 @12:44PM (#34328543)
That's right when your eyes change, too. It's so predictable, optometrists can tell you what age you are.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by boringg on Thursday January 12, 2023 @09:54AM (#34354332)
I heard that was related to memory strategy (i.e. the brain focusing on more important methods and information) and not ability. I'd be curious on the results - clearly they aren't published though.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by issa on Tuesday January 10, 2023 @11:59AM (#34327822)
Our metabolism doesn't change in the technical sense, but in the popular sense of the word "metabolism" people absolutely slow down. At 20, missing a night's sleep wasn't even that big a deal. At 50 it is essentially impossible. I don't know what the underlying mechanisms are, but that's what people mean when they (incorrectly, it seems) say "metabolism".
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by anaisbetts on Tuesday January 10, 2023 @12:48PM (#34328595)
Sleep quality pretty steadily declines with age - your 8 hours of sleep simply count for less than it used to, and you're actually consistently operating on decreased sleep
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by issa on Tuesday January 10, 2023 @12:55PM (#34328721)
And that's even without factoring in children!
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by jghn on Tuesday January 10, 2023 @12:05PM (#34327952)
Out of curiosity how scientific or not of an approach did you take on the supplements. For instance I can't imagine you did double blinds on single supplements but did you start taking a bunch of stuff at once and assess later you felt ok? Tweak one thing at a time? something else?
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by useto075 on Tuesday January 10, 2023 @12:15PM (#34328115)
A study https://directorsblog.nih.gov/2019/12/17/aging-research-plas... found some blood protein changes at ages 34, 60 & 78.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by brewdad on Tuesday January 10, 2023 @12:27PM (#34328291)
I think your last sentence is the crucial one. Up until 40, I could pretty much push through whatever tasks I needed to do regardless of how poor my sleep habits or diet had been. Now, as I approach 50, I really feel it on days where I haven't been taking proper care of myself.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by CodeWriter23 on Tuesday January 10, 2023 @11:27AM (#34327293)
Easy enough to test, get off the high velocity media and do normal things like socialize / get out of the house (if you're aren't already) for 2-3 months and see if things change.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by mythhouse on Tuesday January 10, 2023 @11:34AM (#34327414)
yes!! . I am in colorado for a 3 month work/ski trip hoping to ski 3 days/week. I don't use my phone on the slow ski lifts. Its amazing to be phone free for the whole day out in the mountains.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by arcturus17 on Tuesday January 10, 2023 @12:10PM (#34328035)
My energy levels drop drastically when I'm doing too much "high velocity media" or bottomless wells, be it Reddit, regular news, tv shows, movies, games, etc.

I think it fries your dopamine and other neurologic circuits. I don't know the science for sure but I have seen enough personal anecdotal evidence on myself and others to be persuaded that the relationship is huge.

Do a screen fast for a couple of weeks and check out what happens.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by tablatom on Tuesday January 10, 2023 @01:01PM (#34328827)
This is turning into a great thread and this comment is the most impactful one for me. I'm going to give it a go. My daughter is 18 and at least half her peer group are in a dreadful state in terms of mental health. You have to wonder if the impact of the modern media environment is way worse than we've comprehended. Of course that's totally unempirical but is the funding there for the studies we need? In any case it's easy to run the personal experiment, as you've suggested.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by dataqat on Tuesday January 10, 2023 @12:21PM (#34328205)
I used to be able to work 36hrs straight (random work crunch every few years). Hit 40, launched into such a session, 2am hit a wall... "Can't. do. this..." Laid my head down on my desk and slept for 2hrs. Haven't been able to pull an all-nighter since.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by 0xdeadbeefbabe on Tuesday January 10, 2023 @01:03PM (#34328873)
It's a feature not a bug.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by thewebcount on Tuesday January 10, 2023 @07:09PM (#34333307)
If you're male, you might want to check with your physician to see what your testosterone levels are like. You're at the age where it starts declining and it can have a really fatiguing effect.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by mythhouse on Wednesday January 11, 2023 @12:25AM (#34335297)
I've gotten it tested. I am indeed on the lower end of the range. But there is nothing that can be done about it right? I do workout 6 times a week with 3 weight training, eat very decent diet. My weight, bodyfat and muscle tone are in good standing too. All That really hasn't raised my testosterone. I don't want to get on TRT.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by swah on Tuesday January 17, 2023 @10:51AM (#34413968)
Just curious why you don't want to get on TRT?
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by Too on Wednesday January 11, 2023 @12:53AM (#34335464)
Even worse: high velocity work distractions, Teams, Slack, etc.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by Existenceblinks on Tuesday January 10, 2023 @12:13PM (#34328080)
Energy yes, and focus. When an interest is lost, it's harder to focus. Like why the hell would I still have to write this algorithm, it would be exciting when I was younger, now it's meh lets find out if there's a lib for this. And then every piece of software is garbage through lens of experience .. why would I write software at all .. of course because I need a job and money. Now I may think I'm not sharp as my young self.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by mfer on Tuesday January 10, 2023 @12:51PM (#34328650)
Diet and physical activity play a huge role in mental clarity and energy level. The diet part of that we're only beginning to really understand in the last 10-15 years after some research breakthroughs in looking at our gut.

Western diets (e.g. the standard american diet... what we actually eat) is fairly bad for our health which impacts our abilities.

I would recommend folks look into the Blue Zones. Where people live the longest and thrive for the longest. Look at their eating and lifestyles. One of those zones is in the US where people have work/life balances similar to folks here.

In my case, changing my diet and activity level caused my energy to go up and mental clarity to improve.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by malux85 on Tuesday January 10, 2023 @12:55PM (#34328722)
Me too, I'm 37, and I did a radical diet change -- No sugar, no carbs, no dairy, no gluten. Only meat and vegetables and fish and some fruit.

After a year of this I've dropped 20kg, and my mental clarity is back where it was when I was early 20's.

I think it was mostly the no sugar that did it.

Exercise too - I walk 2-5 km a day

Oh and cutting down what I eat too -- I only have 1 meal a day, and a smoothie in the afternoon

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by tablatom on Tuesday January 10, 2023 @01:17PM (#34329071)
That's pretty radical on the diet. Was it difficult to adjust? I'm pretty thin as it is so I'd be worried I'd waste away!
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by mfer on Tuesday January 10, 2023 @01:29PM (#34329237)
I did a radical diet change, too. I'm wired where I can just do that. I've read most people can't and trying often leads people to failure. If you aren't wired to just pivot on a dime you might try a system that works for you.

My major diet change was to eat like the healthiest of the Blue Zone folks. I wanted great energy now and longevity of it and my life. A diet that gives me energy now but leads to heart disease wouldn't cut it.

For that, I went plant based whole grain.

How much you eat matters, too.

A good technical book on diet is The Proof is in the Plants [1]. It covers what we need in our diets and why. For example, how much selenium do we need and what are sources of it. Despite the book title talking about plants it also covers meat and dairy. Everything covered in the book is based on the latest scientific research. It's written by a dietitian who can reference the studies.

[1] https://www.amazon.com/Proof-Plants-science-plant-based-plan...

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by malux85 on Tuesday January 10, 2023 @02:06PM (#34329822)
Yes it was difficult - giving up sugar was very tough, everything has sugar in it and the cravings were strong.

After a month though my taste buds changed, and I really enjoy the taste of meat and vegetables now.

Yesterday I had the opportunity to eat some vegan ice cream, and I thought I would treat myself to a couple of scoops in a cup thing, and after just 2 bites it was sickly sweet, the amount of sugar made me feel really ill, and it felt like I was eating poison, so I threw it away.

Quite interesting. I do miss some foods (pizza :( ) but the mental clarity alone is worth it.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by mfer on Tuesday January 10, 2023 @05:03PM (#34332202)
Vegan processed foods are often just as bad as regular processed foods. So sweet. The vegan label may mean there's no meat or dairy but it doesn't mean it's good for you. Most processed food isn't.

Plant based whole grain is usually a diet of the real foods themselves. Take a bean burrito that someone makes fresh. Or a stir fry using fresh veggies. So different from processed foods.

I still eat pizza. Love them carbs :)

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by treeman79 on Tuesday January 10, 2023 @03:35PM (#34331089)
Similar results for me. Was basically stuck in bed most of the day. Finally went AIP diet, which is roughly the same diet. Few months later I was kayaking a couple times a week.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by incanus77 on Tuesday January 10, 2023 @12:54PM (#34328703)
> 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...

This is an amazing insight. I’m almost 46 and feel like I’m at the top of my game, programming-wise, but also, I’m probably at my healthiest. And that’s worked-for health, not the kind that comes for free in your 20s (generally). And I think about and pay attention to energy levels during the day, and just know when I’m toast for the day and time is better spent elsewhere. I take a brief afternoon nap before coffee most days. I pay attention to when my mind is receptive to new information. I let some things bubble away in my subconscious and sometimes make new insights on walks, in the shower, or while making coffee.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by Jorengarenar on Tuesday January 10, 2023 @01:48PM (#34329545)
>I guess the difference is that in your twenties, energy is almost for free.

Where can I obtain this for free energy?

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by jb1991 on Tuesday January 10, 2023 @09:53AM (#34325722)
Another thing is simply that we have lower tolerance as we age for things that are boring. It's hard to get motivated and concentrate on something you don't enjoy. When I was young, I could bend over backwards for stuff I thought was meaningless but now I just shrug and try to avoid the kinds of problems you describe -- and if I had to do one, I'd probably procrastinate and feel lots of negative emotions.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by FlacoJones on Tuesday January 10, 2023 @09:55AM (#34325741)
thank you for adding "(if you can)" to suggesting they relax...that is real
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by MuffinFlavored on Tuesday January 10, 2023 @09:55AM (#34325743)
> 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?

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by cstever on Tuesday January 10, 2023 @10:03AM (#34325859)
More life responsibilities isn't a bad thing. Life is (or should be) made of intentional decisions by the user (you). And the culmination of these intentional decisions can fill your life with meaning, purpose, and fulfillment.

You don't have to take Responsibility A if you don't want to, but you have to live with the consequences of your decision (good or bad). It's a trade off. I want a house. I make that decision for that responsibility. I now own that responsibility knowing the duties that come with home ownership will take a portion of my time and therefore will reduce the availability of time once given to a different responsibility.

Of course, mistakes will be made, but the best part is you can most often correct mistakes in healthy and meaningful ways.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by xyproto on Tuesday January 10, 2023 @10:40AM (#34326449)
Life is more fulfilling, but with more responsibility comes more things to worry about.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by SnaggyJoker on Tuesday January 10, 2023 @10:00AM (#34325816)
Pretty sure nobody looks forward to getting older except for the young.

People plan towards retirement which is usually just looking forwards to not having to work anymore.

People look forward to having children and grand children.

I don't know anyone who looks forward to getting older except for the young.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by notyourwork on Tuesday January 10, 2023 @10:25AM (#34326222)
By enjoying today, tomorrow will come regardless of whether you want to avoid getting older. Best you can do is prepare for tomorrow, health and finances.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by WhiteBlueSkies on Tuesday January 10, 2023 @10:19AM (#34326129)
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.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by MuffinFlavored on Tuesday January 10, 2023 @10:35AM (#34326365)
It just feels like you gradually "give up" a life that was once yours (less responsibilities) and are "slowly forced" into a life that isn't as much yours (get married, buy a house, have children).
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by WhiteBlueSkies on Tuesday January 10, 2023 @11:15AM (#34327105)
Doesn't "slowly forced" imply lack of agency?
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by MuffinFlavored on Tuesday January 10, 2023 @12:44PM (#34328545)
> sense of agency refers to the feeling of control over actions and their consequences.

You're damned if you do (give up control) damned if you don't (walk through life unmarried with no kids in an apartment wondering what could've been)

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by fullshark on Tuesday January 10, 2023 @10:21AM (#34326147)
Without responsibilities your life has no stakes, and no rewards.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by bboygravity on Tuesday January 10, 2023 @10:10AM (#34325969)
Those life responsibilities are not mandatory unavoidable things. They're choices.

Such as: owning property, owning car(s), having children, getting married, getting a mortgage, etc.

You can chose to not do any of those things and basically live like you're 20 when you're 80 (in terms of responsibilities).

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by alex_suzuki on Tuesday January 10, 2023 @10:20AM (#34326139)
As someone who has done all the things you listed, my experience is that the grass is always greener on the other side.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by sowbug on Tuesday January 10, 2023 @12:55PM (#34328711)
Everyone says "I'm not as quick as I was when I was younger, but I have more experience."

But that's a very sad kind of survivor bias. You were born with your quickness, but you have to earn the experience. Not everyone ends up middle-aged with useful experience. You hear only from the ones who do. And nobody has a time machine.

So look forward to reaping the benefit of experience, but let that be a warning that experience doesn't happen for free. Use your youth to acquire as many lifelong skills as possible. Use those skills in challenging ways to develop judgment. Use your skills and judgment to develop meaningful relationships with people who have chosen similar strategies.

Being able to offer solid skills, judgment, and relationships, rather than the ability to work consecutive 18-hour days, is what you'll have to look forward to.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by softwaredoug on Tuesday January 10, 2023 @09:57AM (#34325763)
I agree - I think cognitive decline is very gradual over life until older age. And experience makes up for it. Some abilities even improve. [1]

Responsibilities seem to multiply. And as you age you sometimes find you're not only caring for kids potentially but aging parents. It's a lot.

1 - https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4015335/#:~:tex....

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by safety1st on Tuesday January 10, 2023 @10:05AM (#34325900)
Personal anecdote: I'm around the same age as OP and until recently also felt like my thinking was slowing down over the years.

I went for many years without an exercise habit. About 5 months ago I started lifting weights. The transformation has defied all my expectations and the biggest unexpected benefit is that my mind has become sharper, faster and more focused. I essentially feel like I've reversed a decade's worth of brain and body aging by going into the gym and lugging some iron around a couple times a week.

Around the same time I started cutting back on alcohol intake and cleaned up my diet a bit. So it could be any of these factors but I think it's a combination of all of them, as you get older, you need to maintain your body or it'll deteriorate and take your mind with it.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by ixtli on Tuesday January 10, 2023 @10:22AM (#34326168)
My girlfriend got sick and now I have a part time caring responsibility that’s mostly about doing chores and errands. I’m in better physical shape now and oddly feel more capable at my engineering job.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by DwnVoteHoneyPot on Tuesday January 10, 2023 @10:48AM (#34326592)
While the chores isn't as fun as a hike, active rest is better than passive rest. Helps that it seems like you have a positive attitude to the chores.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by ixtli on Tuesday January 10, 2023 @12:40PM (#34328478)
I've never had an issue doing small chores but in the past i'd basically organized my life such that i avoided having to do as much ancillary stuff as possible. Now, whatever reservations i had before about repetitive shit like washing dishes by hand or running errands are gone because its for an immediate, greater purpose. And she really appreciates it :)
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by bcrosby95 on Tuesday January 10, 2023 @11:23AM (#34327219)
This happened to me with kids. I've always been a lazy slob who plays video games in their spare time. By my late 30s I was starting to feel like a bag of garbage.

But when I had kids it forced me to move and do things. Now I feel better in my '40s than I did in my '30s.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by FPGAhacker on Tuesday January 10, 2023 @10:12AM (#34325994)
I’ve had a very successful similar experience with regard to excercise.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by dr_dshiv on Tuesday January 10, 2023 @10:21AM (#34326154)
Hmm. Do you think we will ever get a pill to replace exercise?
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by mensetmanusman on Tuesday January 10, 2023 @10:39AM (#34326435)
Maybe centuries from now we will be able to replace movement with a bunch of chemicals that confuse the muscles to think they moved, but movement actually causes a lot of hydraulic pumping effects throughout the lymphatic system that physically diffuses toxins into a waste stream.

It’s probably not possible from a physics standpoint to replace motion induced pumping/diffusion with pure chemistry.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by spoonfeeder006 on Tuesday January 10, 2023 @11:38AM (#34327480)
You don't necessarily want to mimick muscles moving, but rather the brain effects of said muscles moving

Its possibly people may isolate the two effects separately

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by theFco on Tuesday January 10, 2023 @12:11PM (#34328042)
I suspect the brain alone cannot do it. At a some point the chemistry needs to happen, and it has to be in the right place (so the physics of moving liquids inside your body is also required).
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by FPGAhacker on Tuesday January 10, 2023 @10:31AM (#34326299)
Probably not to replace excercise, although who can say with gene editing.

Reducing, stopping, counteracting mental decline is a holy grail in medicine. I think there has been some progress here.

And on the general mental acuity note there are things like modafinil.

The best things known work are do what you need to do to get good sleep, and find some way to exercise routinely.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by jb1991 on Tuesday January 10, 2023 @10:28AM (#34326262)
Exercise is a source of enjoyment, why would you want to replace that?
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by oneplane on Tuesday January 10, 2023 @10:39AM (#34326431)
Perhaps the pill we'd need is one to make everyone enjoy exercise at some minimum base level. Plenty of people I've talked to were either not enjoying exercise at all, or did enjoy it while they were doing it, but have a lot of resistance to getting started every time they plan to do something.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by dr_dshiv on Wednesday January 11, 2023 @02:30AM (#34336019)
Love this idea. As I’m on the couch in my running outfit, avoiding running, I clearly need to pop a Motimove.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by Karunamon on Tuesday January 10, 2023 @10:42AM (#34326480)
The trick is it's not a source of enjoyment for everyone; if it were there probably wouldn't be such an obesity/heart disease problem in this country.

This is kind of where I always have been, I find exercise to be a loathsome and boring chore, a necessary evil that gets in the way of things I would rather be doing.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by antod on Tuesday January 10, 2023 @04:05PM (#34331482)
Same for me, I hate exercise for exercises sake. I always have to make it a side effect of something necessary or fun I'd rather be doing - commuting by bike, mountain biking, standup paddling or windsurfing etc.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by NineStarPoint on Tuesday January 10, 2023 @10:50AM (#34326650)
I exercise on a strict schedule, both weight lifting and cardio. It is never enjoyable for me. I don’t get runners high, or pleasure from the exertion. I just make myself tired, sweaty, and add on temporary pain to my muscles.

It’s worth it for the global effect on my energy levels and health. But it remains true that for some of us, exercise is never a source of enjoyment, and I understand why many people can’t get through that to do it anyway.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by travisporter on Tuesday January 10, 2023 @11:36AM (#34327444)
I’m in the same boat. Sports is a great shortcut but it’s just a lot of mental effort to meet new people.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by bluefirebrand on Tuesday January 10, 2023 @12:50PM (#34328632)
> I don’t get runners high, or pleasure from the exertion. I just make myself tired, sweaty, and add on temporary pain to my muscles

I feel the same way with exercise. People tell me that you feel good after and I never do. People tell me that you feel a "good" soreness in your body and I never do. I just feel sore.

I wonder what's different about people like you and me where we don't enjoy this process the way some other people do? Do you think it's been studied?

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by kayamon on Tuesday January 10, 2023 @10:25PM (#34334682)
I used to struggle to build muscle the same way, until I switched to a paleo diet.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by yamtaddle on Tuesday January 10, 2023 @10:53AM (#34326704)
Most of it's less enjoyable than several other things I could do with that time instead. Focused cardio, especially, is miserable enough that I'd rather do a bunch of other things I find unpleasant instead (IMO). The parts I find enjoyable enough that I'd choose to do them over other not-unpleasant things mostly require a bunch of other people (sports) and are hard to schedule, and then become another thing to schedule around for other activities or things that come up. Weight lifting's fun as far as such things go, but takes up space or requires trips to the gym.

The feeling after's nice, though. Would take that in a pill form, for sure.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by andybak on Tuesday January 10, 2023 @11:07AM (#34326964)
> 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. Prog... by Existenceblinks on Tuesday January 10, 2023 @12:55PM (#34328709)
Yeah, nothing is going to replace eyes, ears, memory muscle experience. Imagine something would replace table tennis sensing experience?
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by bentcorner on Tuesday January 10, 2023 @11:37AM (#34327460)
Maybe not a pill but hopefully we'll have advanced technology that can determine what kind of exercise is exactly right for your goals, take into account any injuries, and tailor your Travelator(tm) Mech Suit to provide you enough resistance for maximum gain with lowest effort as you complete your daily outdoor cobalt mining gathering allotment for LikeCoins.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by MattSayar on Tuesday January 10, 2023 @11:58AM (#34327812)
I like the joke "If exercise were a pill, every doctor would prescribe to everyone."
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by safety1st on Thursday January 12, 2023 @12:15AM (#34349496)
While we don't have this we do have two simple technologies which massively amplify the benefits of whatever exercise you do: whey protein and creatine (plus a whole host of others where the risk/reward profile is less straightforward)
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by lvturner on Thursday January 12, 2023 @12:44AM (#34349660)
We already have many, the side effects however are... problematic.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by hagmonk on Tuesday January 10, 2023 @10:57AM (#34326792)
Sharing my own anecdata: my Oura ring shows that on days I drink, RHR is 10bpm higher and HRV about 15ms lower. Exercise has a huge impact on sleep quality too.

My theory is that when you're young, your body has a much wider margin for error. A few drinks or sloppy exercise routines never seemed to impact my work. As I've aged, the margin has shrunk, and now there's a measurable effect that I can no longer ignore. Aging is in itself a handicap, but now after too many drinks, the next day both my cognitive sharpness and motivation to even care about shoveling bits around a network have declined.

Now I need to actively stack the deck in my favor, rather that engaging in behaviors that further handicap myself. So that means exercise, a sleep routine, zero alcohol most days of the week, reducing stress, all that goddamn stuff I never had to worry about ;)

Another way to think of it is this: at 40 or 50, can you afford to be lugging around a 20% RHR penalty all day? That will surely come home to roost, probably in the form of atherosclerosis. Remember the most common clinical presentation for a heart attack sufferer is not chest pain, but being dead on arrival.

I bring this up because it's worth nothing that our bodies and minds are remarkably good at covering up problems until far too late. When you get those early warning signals (high RHR, feeling of cognitive decline, etc) trust your body, be proactive, and employ countermeasures.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by jghn on Tuesday January 10, 2023 @12:10PM (#34328031)
My having an Apple Watch opened my eyes on how much alcohol affects my sleep, and thus everything else. Even as little as a single drink can have a disruptive effect that night. A real bender might take a couple of days for the effects to completely wear off.

Last year for unrelated reasons I wound up not drinking at all for a few weeks. All of my heart & sleep metrics were improved by large amounts. When I zoom out for the full year view it's obvious immediately when that was in the aggregate data.

In terms of how this knowledge affects my behavior? I'll still tie one on at about the same frequency. But the casual "sure why not, I'll have a beer" is gone. Whenever I'm about to consume alcohol I think about if the amount of enjoyment I'll be receiving is worth the downside & act accordingly.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by hagmonk on Tuesday January 10, 2023 @01:47PM (#34329531)
Yeah that's a great point, the data really makes you pause and say "is this worth the cost?"

The other wearable that has had an extreme impact on my lifestyle has been a Dexcom CGM through Levels. I could write pages about this, but in some ways it has been more impactful than anything else. Knowing how your body reacts to particular foods, and seeing the immediate feedback is super eye opening.

And it extends into sleep as well, looking at what your blood glucose does overnight based on stress, exercise, what you ate, when you ate it, it's quite amazing to see how this subsystem in your body is reacting.

I'll never forget the first time I ate sushi (which mentally I thought of as a "light" food, even a snack) only to see my blood glucose rocket past 200 mg/dLf.

You can also see the effect of alcohol here. Not just with carbohydrate heavy beers, but with the fact alcohol itself suppresses your blood glucose levels, since it causes your pancreas to spike insulin, which disposes of glucose. So it's yet another way alcohol causes a disturbance in your body's attempts at homeostasis.

Alas, a CGM through levels is quite pricey because of US healthcare bullshit about giving CGMs to people without a diabetes diagnosis, but doing a month or two of CGM once per year I think it's a great investment (approx $200 for three sensors which last a total of 30 days)

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by tablatom on Tuesday January 10, 2023 @01:11PM (#34328977)
Is the Oura a good purchase? I've been really eyeing the health benefits of the Apple watch but there's no way I want a portal into the digital world that's a flick of the wrist away. It's bad enough with the phone pickups.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by hagmonk on Tuesday January 10, 2023 @01:39PM (#34329390)
In terms of wearables, it's quite unobtrusive because it's literally just a ring. There is no display to become distracted with. The inside of the ring will glow when it's taking measurements (red for blood oxygen, green for heart rate) so that might surprise you when the lights are out, but that's about the extent of how "intrusive" it is.

The battery life is very good, I typically get several days to a single charge, which is far better than the Apple Watch. But most importantly it's comfortable to wear during sleep - indeed it takes the majority of its measurements only while you're sleeping. YMMV but there's no way I can wear an Apple Watch to sleep, while the Oura ring works perfectly. I've worn the last two generations of Oura ring and would definitely recommend.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by papichulo4 on Tuesday January 10, 2023 @02:18PM (#34330043)
100% recommended as a non-obtrusive sleep tracker. But it's a bit bulky as a ring (and... it's a ring) so I can't recommend it to the same degree for day-time wear.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by rofrol on Wednesday January 11, 2023 @04:20AM (#34336655)
> Dexcom CGM

Gen3 app without premium subsciption is very limitied https://youtu.be/c4AVLGwkJHo?t=193

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by diydsp on Tuesday January 10, 2023 @11:29AM (#34327335)
> lifting weights.

In this recent survey of nootropics [1], weightlifting was better than dozens of chemicals. In fact, it was third only to Dexedrine and Adderall. It scored better than Ritalin! And its variance is tighter than most substances, meaning it's one of the most likely means to improve results for anyone who takes it on.

Personally, I agree. After covid sapped some of my energy, it took about 2-3 months to get back to my average gym sessions and now I feel so much better. Happier, tougher, etc. When I am in shape, the geometry of the world around me changes. A distance or effort I might consider looks, feels, and is more in reach after a few weeks of rows, lunges, pushups, hanging, swinging, light cardio, biking, etc.

[1] https://astralcodexten.substack.com/p/link-troof-on-nootropi...

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by vogt on Tuesday January 10, 2023 @11:36AM (#34327452)
Would you mind sharing the routine, or a general outline of how you approached weight lifting from “zero” to “one”? I’m approaching 36 and haven’t lifted anything in 10+ years. But reading sentiments like this is motivating me to start again. I’m just scared honestly - my body has atrophied quite a bit the last 4-5 years at minimum
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by theptip on Tuesday January 10, 2023 @11:42AM (#34327533)
Typical good advice is to do some simple barbell compound lifts like Rippetoe’s Starting Strength. Deadlift, squat, pull-ups, hard to go wrong with that base.

Make sure you ramp load gradually if you have lifted in the past, your muscle memory can return faster than your connective tissue strength leading to injury risk if you stack the weight aggressively.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by ryanwaggoner on Tuesday January 10, 2023 @01:18PM (#34329093)
Make sure you ramp load gradually if you have lifted in the past, your muscle memory can return faster than your connective tissue strength leading to injury risk if you stack the weight aggressively.

This! Dealing with this right now :(

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by patch_collector on Tuesday January 10, 2023 @11:47AM (#34327607)
You might look into a trainer for a few sessions. I'm in a similar situation, and just getting back into lifting with a set of at-home weights. Thankfully, one of my company benefits is an in-house trainer who you can sign up with for a few remote sessions. She's putting together a plan for me, then will do a few zoom calls to make sure I'm doing the exercises right, and hopefully that'll take care of things.

Years ago, I used a trainer in a gym to kickstart a plan, and I found it very useful.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by wobbly_bush on Tuesday January 10, 2023 @04:17PM (#34331634)
+1, I highly recommend getting a personal trainer for a few sessions. They can even do remote video sessions outside of signing up for a gym. A good trainer can recommend exercises that provide just the right amount of challenge - not too low that benefits aren't there, and not too high that the difficulty makes you quit (this is a problem with gym group classes).
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by kaon123 on Tuesday January 10, 2023 @11:49AM (#34327655)
I am 34. Start HIIT (high intensity interval training) 10 weeks ago. First time in my life I am in a gym. I also notice the transformative effects.

The way I am managing to build my habit: Only do group sessions. If you want to go fast you go alone, but if you want to go far you go together. I know that group sessions are the only thing that give me enough structure to continue.

So maybe it will help you get started as it did for me? Personally I went to a fairly expensive gym so the groups are small. This to minimise risk of injury. Try it if you can afford it.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by emiliobumachar on Tuesday January 10, 2023 @01:48PM (#34329544)
I'm not who you asked, but I'll share my experience escaping sedentarism in advice form:

Start with push-ups. They're fast and require nothing but a flat surface. You can always transition to lifting weights later.

Start today, ideally right now. Seriously. It's your only chance. Tomorrow there'll be an even better reason not to.

Don't worry about initial quantity. You can start with two push-ups, that's fine. It'll take ten seconds if as much.

Repeat every day.

When you feel it got too easy, increment by one starting the following day, not at the moment.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by wazoox on Wednesday January 11, 2023 @09:45AM (#34338978)
This. For me the secret to actually going from total couch-potato to fit was to exercise every. single. day but Sundays.

I tried 3 times a week or whatever, and every day you'll find some excuse to push exercising to the morrow.

But doing exactly the same routine every day was key. Then the routine evolves with time, but it's almost always the same routine. I started with a few pushups, then added burpees, then I bought some weights and added a few movements, then I started running 300m a day the first week, and augmented gradually until I ran 42 km every single week.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by safety1st on Wednesday January 11, 2023 @01:32AM (#34335728)
Sure! As someone who failed for decades at establishing an exercise habit, a few things were key.

* I hired a personal trainer. Actually, two of them, scheduled on different days, to reduce the chance that I would saddle myself with a bad one and not know it. After 2 months I let go of the least effective trainer. The trainer(s) were huge at first because having an appointment with someone helped me actually get off my ass and show up, my own willpower alone was always insufficient in the past. They also exposed me to a variety of exercises which is how I learned that I really enjoyed weight lifting (and some other exercises, not so much). Nowadays I just have the one guy once a week doing form checks.

* I joined a very nice gym near my office, again as a motivator. It's easier to attach one habit to another habit, and the habit of going to work is pretty ingrained, so "walk across the street for one more appointment" turned getting into the gym from something hard to something that was basically automatic. My workout is my favorite part of the week now because my gym also has a great jacuzzi and afterwards I get to plop into the jacuzzi, veg out and catch up on podcasts.

* In terms of the "technology" around weight lifting specifically. I'll triple emphasize just hiring a good trainer and just following their instructions at first. But once I started engaging my own brain, I found A) Correct protein/macro intake was bigger than everything else in terms of getting results. Get your daily protein to where it needs to be (which is freakishly high) and same goes for calories (depends on your current body type and intake). B) You don't have to push hard on increasing weight at the beginning at all, nor worry much about how many reps you do, just do what is fun and safe and do it regularly. C) For further education the book Starting Strength and the Fitness Wiki maintained by Reddit's r/fitness are really good. They recommend similar beginner workouts and as an out of shape guy, you can basically start on these immediately as long as you're getting regular form checks and sticking to low weights. (I actually was so weak I had to start with just the bar or even dumbbell variants... once I started pigging out on chicken and whey, that changed very fast, increasing how much I was lifting got easier, and within a couple months I had muscles everywhere.)

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by curioussavage on Tuesday January 10, 2023 @12:53PM (#34328681)
This. My thinking was getting so bad that I went to a neurologist. At the same time I started walking daily. A month or two later and I feel like a totally different person. Mental clarity has sharply increased. Haven’t even fixed my sleep yet either. Can’t wait to see how much more improvement I can get.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by djtango on Tuesday January 10, 2023 @02:22PM (#34330100)
Anyone have experience comparing weight lifting vs other forms of exercise? Curious of how cardio vs weightlifting compares for example. I have heard a lot of podcasts talking about some psychological benefits from low heart rate cardio that are difficult to replace with other forms of exercise, for example.

Call me a wimp but I find DOMS can be a little distracting haha.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by balex on Tuesday January 10, 2023 @04:37PM (#34331878)
I find DOMS kicks in after taking a week off from my lifting routine or when I switch the routine altogether. As long as I keep a week between working the muscle group, DOMS isn't a thing.

When I do expect DOMS to kick in, I drop weights to 50% my max sets (usually dropping weight vs reps). This makes me "somewhat sore" the following day but no more than that. I also put an emphasis on sleep, "clean" nutrition and supplement with electrolytes. Works really well for me.

As for low intensity cardio, I feel it's good for me, but I have to say it can be a struggle to keep it low. The feeling of "I want to push harder" can sometimes be overwhelming.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by denton-scratch on Tuesday January 10, 2023 @10:18AM (#34326105)
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. Prog... by Damogran6 on Tuesday January 10, 2023 @12:29PM (#34328323)
I'm 53, I'm feeling similar. I see the 7th package manger or the 4th pipeline manager or the 17th linux disto or the 52nd video game where you can craft shit...

and it just makes me tired. While I'd like to retire and think I'll financially get there sooner or later, I'm afraid that there's an underlying structure to work that I'll miss.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by asah on Tuesday January 10, 2023 @10:20AM (#34326133)
big +1 to all this. Also if OP had COVID, check for long COVID symptoms of other kinds, incl cognitive issues with non-programming tasks.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by justanother on Tuesday January 10, 2023 @11:06AM (#34326942)
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. Prog... by Turing_Machine on Tuesday January 10, 2023 @05:30PM (#34332456)
> you generally have to give progress reports at least daily

This trend seems genuinely goofy to me. If you have daily reports, standups, or whatever, you're going to be spending a lot of your time prepping for those. That's time that you're not spending writing actual code (or whatever you're nominally supposed to be doing).

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by djaychela on Tuesday January 10, 2023 @11:18AM (#34327143)
Came here to say much the same. I'm older (51), and have felt I was losing my ability to think over the last few years, and also to express myself clearly in conversation. But a great deal of this is to do with a number of huge problems that have happened with my step-children and the near-constant onslaught of having to deal with a variety of agencies and not just run off into the sunset. Plus I decided I could self-build an extension to my home.

It may well be that the OP has other load that has crept up on him; until you take a step back it's often difficult to see what's happened over a period of years.

But burnout is a thing, and sometimes you need to take stock, take a break, and maybe even make some big changes. You're only here once, so it's a good idea to give it your best shot, IMO.

As far as anyone can tell.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by spacemadness on Tuesday January 10, 2023 @11:23AM (#34327228)
Yes, let’s not spread around some idea that mental ability declines at 40. That’s just ridiculous and not backed by science. It sure is backed by ageism though.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by jjtheblunt on Tuesday January 10, 2023 @11:59AM (#34327829)
i think that's perfectly said, and i'm 55.

in short, that assignment sounds de-motivating, so you're predisposed to notice momentum is hard to establish.

and getting coherent blocks of time, to get in a flow as they say, is the challenge that hits me all the time, and which i didn't have when going to an office 20-35 years earlier (including in college i mean).

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by ljm on Tuesday January 10, 2023 @12:15PM (#34328108)
I have my problems with burnout and depression and this usually leads to phases where I am hyper productive and can effortlessly take on any challenge, and then the opposite phase where I feel completely incapable and end up overthinking everything.

Even without burnout, sometimes a problem doesn’t motivate you and therefore you don’t really feel like solving it when there are other things that seem more interesting or more practical.

Either case, once the down period starts it’s a good signal to take some time off and get your head out of it.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by alfon on Tuesday January 10, 2023 @12:56PM (#34328739)
For someone who has been forced to try countless substances / diet regimens / health strategies due to a pervasive chronic disease, I beg to differ. There's so many things that you can personally do that will alter your cognitive abilities, sometimes to an incredible extent. The tricky bit is that there is indeed no silver bullet, and what works for someone might do nothing or create harm for another. So in my opinion, understanding that there are alternatives to resignation is really the critical component.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by WuxiFingerHold on Wednesday January 11, 2023 @12:04AM (#34335200)
I'm 50 and can confirm this. E.g., I'm currently much more concerned about how politicians seemingly driving the country I'm living in and the world as a whole downhills in all regards. These worries are of course a waste of my personal energy.

On the other hand: When structuring my day with Pomodoros (https://en.wikipedia.org/wiki/Pomodoro_Technique - especially doing the rest properly, meaning just lying down doing some relaxation technique) and resisting all other harmful stuff like (to much) news or (any) social media, I feel like I'm even sharper than in my younger years. Even remembering stuff better.

So, I think those problems are to be spotted in our changing environment and internal setup more than in an aging process. At least not at 40, 50 or 60.

Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by thorin on Wednesday January 11, 2023 @05:56AM (#34337129)
I think this is quite true, and I've noticed that my son can remember virtually every pokemon card and football player he's interested in whereas I've started to have to write things down. His world is quite small and now with the Internet etc our focus is very wide. It takes serious discipline to focus on something low level exclusively and not be subject to outside interference.
Re:Ask HN: I'm 40 and feel my mental ability declining. Prog... by bit-101 on Friday January 13, 2023 @07:59AM (#34367106)
I concur with a lot of what other people are saying here. Late 50s, programming professionally for around 25 years. But recently switched to management. Really hard for me to focus on details of the companies code anymore.

But... when I get on some personal project, I'm on fire. I can learn new languages and concepts and systems and build pretty complex things that people are amazed at.

I think it's more job burn out after years of writing code for other people. You write the code and you work towards the deadline like the world is going to end if you don't make it. Then that code is in production for a year or two. Maybe more if you're lucky, and then it's gone, replaced by some new thing. You stop caring quite as much. But you see these new young kids on fire and working all night and you get imposter syndrome and you try to care and you beat yourself up and think you're losing your touch. tmi?