Lurker News
I'm around 40 and recently I have been asked to port an API from one language to another. The code I'm porting is average code, not terrible, but plenty of little things to complain about.

I feel like my past self could have handled this task, but I am really struggling. Porting this API will require a deep understanding of the existing API, which, of course, has several layers of abstraction.
I can't seem to hold more than about 2 levels of call stack in my head. There's the entry point function which calls other functions, which call other functions, which call other functions, etc. You know how it is, code calls other code, and logically it forms a tree of calls and return values that often goes several layers deep. I struggle to hold more than about 2 levels of this call stack in my head. By the time I'm down in the weeds I've forgotten what I'm doing, what the purpose of the actual API call is.
I don't know how to break this into small enough chunks that I can understand it or make progress on. Imagine I gave you the code for the sha512 algorithm, and a hash, and asked you to find the pre-image (the input). This is how I feel. Where do I even get started? How do I find even a single chunk of manageable work to break off.
The hard part is, several other developers are making progress on porting this API. Why can't I? What happened?
I don't know if this task is just an especially bad fit for me, or if my mental abilities are declining?

Comments (510) 299 threads

Earlier comments
randomh3r01 reply#
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.

kirab#
It took me 2-3 years to fully heal from my burnout. Allow yourself more time if it's only 7 months since you quit your burnout-inducing job. The improvement of my energy, my mental abilities and memory is breathtaking, mentally I feel like 18 again (though I am 35 now).
liveoneggs1 reply#
When you were 25 you lacked the experience to see Porting this API will require a deep understanding of the existing API and, ignoring that obvious complexity, allowed you to move really fast.

Also you get those nagging feelings of futility about doing a mechanical task (translating an API) when you know you (or anything else) will 1) make mistakes and 2) have to do it again in five years anyway.
There are two times you buy a motorcycle - First when you know you can't die and Second when you don't care if you do. Sucks to be in the middle (aged).

wnkrshm#
I just have to reply to this to tell you this comment changed my perspective on my own perceived productivity in exactly this context, thank you.
kardianos3 replies#
1. You're getting old. Start writing everything down on paper.

2. Some people decline mentally faster then others, sometimes in their 40-50. Don't freak out, but do pay attention, ask others you know to pay attention to you.
3. Take it one layer at a time, and again, write everything down, best on paper.
And keep smiling when it is hard.

dushyantbehl#
Was just going to write this but with a minor modification. It might not be getting old part but rather the boring nature of a mundane task, anyway writing things on pen and paper is best and works wonders to help iteratively understand problem and build a solution.
napolux1 reply#
WTF, AM I ALREADY DEAD AT 42?
kardianos#
:)

No, but we mortals age our brain ability does tend to decline.

tluyben2#
I am closer to 50 and didn’t notice much decline yet, however to pre-empt it, I started journaling. I write down what I did per day, tech solutions, how I got to them, links to git repos, what I cooked with ingredients etc. It is fun to be able to say what I cooked Tuesday 3 September if someone asks ‘that Thai dish you made somewhere in December’ or ‘how did you fix that weird nodejs issue’? And it is inspiration for blog posts, tweets etc.

For me it works wonders. Wish I started it when I was 17.

chadlavi#
Bear in mind that the world has been really ratcheting up the "everything's fucked" factor for the last several years. This might not be "I'm 40", it might be "I'm dealing with living in the current state of the world."

Load more comments