Live data from Hacker News

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

news.ycombinator.com

121–130 of 534 posts

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

#121
Whenever you get stuck, try copying and pasting chunks of the code into ChatGPT and pretend it’s another expert developer and just ask the questions you have or ask it to do the thing you’re trying to do. Break it up into smaller chunks so it fits nicely in the context window, and take advantage of the multiple messages for follow up and clarification. If the generated code gives an error, simply paste the error message in as the next message in the conversation.

Also try using GitHub Copilot in the unfinished project with all the relevant files loaded into the current project. Then try writing code comments explaining what the following function does. Basically, try supplementing your own human intellect with the machine intelligence. It’s already unbelievably good and is going to get so much better in the next 1-2 years, and then you will already have a head start on how to leverage it to the maximum extent. Good luck!

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

#122
I would not consider me as much of an authority to give advice, but here are my highly personal take. I believe that this is more about focus and the ability to do a task with high intention. Also, I stopped active professional programming quite a while back, and hence this is me, a developer turned designer turned business person talking.

In my twenties, I can churn out things pretty much non-stop. I think I was trying to "prove it" and I could clock extras in the evening and weekends to move ahead. I could do something repeatedly until it was better than the last. I also tend to take on other people's tasks a lot.

In my thirties, I was still shuffling, not just me and my task but many other people too. I loved the messiness of deadlines, the near-misses, taking on new things, and being in the front of the battle, fighting in it and not flying over it.

I have now hit my forties; I realize I like to take time but do it right the first or second time. I also want to selectively do things with an outsized return on my time invested.

In short, I would have liked a Gatling gun in my younger days, but now I want precise sharpshooters. I'm of the opinion that it is OK to slow down, breathe, and take more targeted precision strikes.

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

#123
I'm 46, and while I do think my cognitive speed has declined a tiny bit, my abstract thinking has improved throughout life. The one change I have noticed though is that programming has become insanely complex during the 37 years I have been programming, but more especially during the last 10-15 years. It's at the point now where you can't even create a basic website, to modern standards, without spending months of work to develop it, or without spending 95% of your time on StackOverflow wrestling with bugs and complexities of 7 different pieces of framework that you're trying to get working together. It's utter insanity.

What I suggest for your current situation is to diagram everything. Just buy some big sheets of butcher paper, and draw out the entire nested API structure. Rely on your visual sense so that you don't have to do as many mental gymnastics. Your visual processing center is the GPU of your brain, it has vastly more parallel processing power than the language processing centers of your brain.

Also remember that everyone has different aptitudes. You might not be decreasing cognitively at all, it might just be that this problem doesn't click with you like it does with the other developers.

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

#124
I've hit the same walls as you have described and found that it's less about cognitive function and more about a combination of burnout, imposter syndrome, and some quirks of my ADHD. I still love to program but when I get the chance to I largely can't organize my thoughts well enough to make much progress, but its because I left a job about 7 months ago where I had been repeatedly hitting burnout in a really nasty several-year long cycle. Now when I sit down to do it I have a thousand things in my brain and I can't stay focused on it. I switched to managing individuals as well over the last few years since I have some natural giftings there but it's made it so that my skills at just zoning in and coding for hours is effectively atrophied since I am so interrupt-driven as a manager (constant emails/IMs and being mindful of my team who I should be supporting rather than my own personal technical goals)..

I've found I need to stop comparing myself to my late twenties self and understand that my burdens are different and I need to set different expectations of myself. As my responsibilities and noise/interference have grown, my ability to do complex design/development has been inversely effected and waned significantly and _that's ok_. I need better tools and to be better at managing my time and energies to be more targeted/specific and I am much more effective than I was all those years ago. I just have to be more intentional and forgiving of myself.

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

#125
I am nearing that age, and personally I find its a factor of motivation more than anything. I got really excited about a side project last year and smashed out more code than I had in years. Refactoring an api for work doesn't sound super exciting. When I don't care, my brain doesn't care as much either.

If you do not believe that is a factor then examine your sleep and physical fitness. These things factor a lot more into brain function as we age.

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

#126

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…

Thank you. Good advice about hacking on some personal projects/experiments. I'm worried that wont rebuild my confidence and abilities fast enough though. I want to make progress on this task today, not next week. Other developers seem to be succeeding, and I'm worried about how I'll look if it takes me weeks do to what others are doing in hours. (This isn't meant to dismiss your advice, to but to give feedback and so…

Your mind will eventually be back at peak performance, but meanwhile you can use pen & paper to help you with this.

Write down what are the big challenges/problems, try to break them down and write about it, keep dividing it until you start to see that you can tackle the indidual pieces.

I'm 42 and I've been in a mental place similar to yours, but a little more drastic due to a hard time in my life, and it took a while to get back into top shape, but the effort to break down my problems on paper helped me tackle some immediate tasks I had to accomplish.

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

#127
post #19

Earlier quoted context omitted.

Thank you. Good advice about hacking on some personal projects/experiments. I'm worried that wont rebuild my confidence and abilities fast enough though. I want to make progress on this task today, not next week. Other developers seem to be succeeding, and I'm worried about how I'll look if it takes me weeks do to what others are doing in hours. (This isn't meant to dismiss your advice, to but to give feedback and so…

In addition to the GP, I'll add there's a certain level of naïveté of being young that makes one feel like they were better than they were. I'm mid-40s and am probably the best I've ever been at writing good code, but sometimes I can get vapor locked knowing all the things I need to account to for. When I was younger I just coded because I didn't know any better. So when I get stuck now, I just start writing code lik…

This. I feel this basically every day now. I really miss the naivete, and I struggle mightily to "just start writing code like I would have".

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

#128

Burnout happens when you're forced to work without motivation. For me (same age as you), two kids and a "life" often soak up most of the motivation. I look at challenging problems in a different way: time travel. When I get fully absorbed into a tech/coding challenge I find that the entire day will slip away. For me, this used to be fun and now it's frightening because I know that a challenge will eat days of my life…

Motivation comes and goes and is unreliable, it's better to be self disciplined and well organized.

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

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

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. Programming seems harder.

#130
Some very good advice in this thread. I would only add one thing. Just do not resort to drugs (legal or illegal) in the hopes to improve performance. Drugs like adderall (or even anti-depressants like SSRI's, etc.) might show some benefits, but likely only the short term. By then, you will have trouble getting off, and cessation of the drug will take you back worse from where you started.

Also, you might not be getting enough physical excercise. Probably the best anti-depressive/stimulant there is.

Post reply on HN