Live data from Hacker News

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

news.ycombinator.com

61–70 of 534 posts

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

#62
post #3

Is the current API under test? Your number #1 priority with any port or major refactor is getting the current implementation defined and under test, so any replacement can be tested against the same tests. Once you've done that you should have a solid foundation and understanding of what the API actually does . In getting it under test, you'll also build up better mental models of which parts are actually separate an…

Great advice, I was going to suggest the same. You shouldn't have to memorize what each layer of a project does, that's what the unit tests and integration tests are supposed to prove.

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

#63
from a similar Ask HN:

> I do have memory issues compared with when I was younger, but I've been coding so long that the total set of stuff I know about is huge comparatively. I'm also much less intimidated by technical challenges since I have a lot more techniques I've successfully worked with and I'm more patient with problems.

> I'm definitely not the same programmer as I was in my 20s, I can't do weeks of 12 hour days in front of the computer like I could then, but now I have a much better and more intuitive understanding of what needs to be done, so I waste a lot less time.

https://news.ycombinator.com/item?id=33530972

Older athletes can't compete with younger athletes on pure physicality, so they have to use other skills: intuition, patience and wisdom are three things that come to mind.

You aren't the same programmer you were when you were young.

Good.

Life would be boring if you were.

Maybe the right role for you here is to establish a good, clear test suite for the transformation to ensure that the API transition maintains semantics. That should also teach you the subtleties of the API, making the work easier to deal with.

Another piece of advice I have for people dealing w/ their CPU slowing down is: just go. Hesitation because we aren't as good as we once were kills a lot of older developers productivity and knocks a lot of good developers out of the game. Just go.

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

#64
I'm a little bit older than you and have been in the industry for almost 30 years. I have a different perspective than mental decline. I think it's that after seeing code and patterns for so long, you might be defaulting to generalization of ideas. I know that I do that.

For example, one of the best developers on my team (a little bit older than me) is "on the spectrum". We've worked together for nearly 20 years, starting at about the same time. Early in our career, we would dig into the details of APIs and patterns and be able to rattle off the details of the changes when a new dot release of an library came out.

As the years have gone on, I've "lost interest" in the details knowing that I can look them up when I need to and have naturally defaulted to generalizing ideas. That is, rather than knowing that we need to change the third parameter in the function call in FOOBAR 3.2 when we upgrade from FOOBAR 2.9 because the details of the memory management changed, I just know that we use the FOOBAR function because it does a specific task that we need.

The reason I bring up my friend/coworker is that he never generalizes, he gets stuck in the details. He can't design his way out of a paper bag, but he can write thousands of lines of code over the weekend with full unit tests and there's never any bugs. So we make a great team, he's one that has focused and has every detail at the tip of his tongue. But he never sees the big picture.

So I view getting older in software as (over) training AI. My brain works in the generalization route and the more I see, the more connections I make, but I need to "make room" in my brain by not encoding the details. My friend's brain works differently. He encodes details and can keep a deep call stack but at the expense of ever being able to see the big picture.

I guess that's a long way of saying that maybe you shouldn't be so quick to think it's cognitive decline. It could be just that your brain is encoding things differently after seeing so many examples in your career.

I know I'd fail miserably at porting an API now (I've done that when I was younger very efficiently). But I also know that I can bring a much higher level of design and ideas to the team than I could have 20 years ago.

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

#65

One thing I would recommend is that you also focus on your physical health. At age 40, there are a lot of responsibilities, and taking care of yourself and your health can get pushed to the side. Take time to eat healthy and get exercise. It is amazing how much a healthy, fit body invigorates the mind.

Seconded, and I'll add a regular sleep schedule to the list.

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

#66
post #8

Sounds like you've identified your problem with the task - you can't hold the entire state of the problem in your head all at once, but maybe you would have been able to in the past. This seems like something you can overcome. Have you tried writing these function calls out as a flow on a piece of paper, or in a flow chart, document, something like that? A reference which you draw to be able to tell where you are the…

IDE code intelligence can help a lot. Anything that makes reduces the cognitive load of navigating within the codebase helps increase the mental capacity you have to keep the context loaded.

When tracing deep call stacks I can find it helpful to write out the question I am looking for the answer to in a comment. Then I can retrace my thoughts back up the callstack using the very handy shortcut to go back to the previous curson position.

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

#67
post #24

If you're interested in it, you still can do it. And coding required many hours STRAIGHT of uninterrupted time to dive deep. Something that you get less and less of as you get older. Plus the distractions (Hello Hackernews). I have a list of passion project ideas. When there's a new hot technology/language I want to learn, I apply it to one of my passion projects and it becomes more directed and focused on a goal and…

Yes! Never underestimate the role of distractions, especially in this day and age. Social media, news sites with a steady flow of 'new' information, 10-15 second videos you can endlessly scroll thru, etc. All of that can be fun, but it will play a role in taxing your cognitive capacity.

Not everyone agrees with it, but I highly recommend checking out the concept of 'deep work' (and the book of the same name). There's nothing new about the concept, but there's a definitive history of folks who have embraced the uninterrupted time approach that have been successful with it.

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

#68
post #8

Sounds like you've identified your problem with the task - you can't hold the entire state of the problem in your head all at once, but maybe you would have been able to in the past. This seems like something you can overcome. Have you tried writing these function calls out as a flow on a piece of paper, or in a flow chart, document, something like that? A reference which you draw to be able to tell where you are the…

This is good advice. Just a few days ago I randomly stumbled upon a youtube video where someone was using — blast from the past, here — a hunk of green bar line printer paper as a big scratch pad to write on. It made me wonder how I ever got out of that habit. That stuff, when it was ubiquitous, was the best scratch paper ever, and I used to do it all the time when I was young and, one would think, at my cognitive peak. Maybe falling out of that habit is part of my percieved decline.

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

#70
I’ve felt this too in my 40s. I generally don’t recommend books that might be considered self-help, but a recent book by Arthur Brooks called “From Strength to Strength” was really helpful for me to understand what’s happening to me, and how to embrace the use of crystallized intelligence in my later career. If that doesn’t interest you, you can find some interviews with him about the subject and book in a few places by search.
Post reply on HN