Ask HN: I'm 40 and feel my mental ability declining. Programming seems harder.
61–70 of 534 posts
Re: Ask HN: I'm 40 and feel my mental ability declining. Programming seems harder.
#62Is 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…
Re: Ask HN: I'm 40 and feel my mental ability declining. Programming seems harder.
#63> 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.
#64For 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.
#65One 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.
Re: Ask HN: I'm 40 and feel my mental ability declining. Programming seems harder.
#66Sounds 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…
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.
#67If 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…
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.
#68Sounds 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…