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
rabi_molar#
It might be worth seeing somebody; you may be suffering from burnout or depression. 40 is not the age you'll see cognitive decline; rather, in many situations, you will begin to approach peak mastery. That's not to minimize or say that you may be experiencing some kind of true decline; rather, it's that I think it's potentially more probable that it's something else. I am of course not a trained medical professional.
fzeroracer#
I know we as programmers tend to be obsessed with our mental abilities, but statistically speaking you're about 30ish years off from the average timeline of mental decline. In times like this you need to take a few steps back and see what's actually taking up space in the back of your head. Usually in cases like this it's burn out, stress etc that people don't notice until they try and feel what's weighing them down.
jwmoz#
38. Sounds like normal dev work, nothing to worry about.

I had to pick up some work using something called OPA open policy agent, horrible. It took 3 senior devs on a call together something like 4 hours and we were all struggling to understand and debug this code. Horrible to work with and understand. It's taken me double the estimated time to work with it.
For your work I'd probably be looking at the requests and responses then trying to fill it all in from there.

eecc#
You might also be bored out of your mind. The first couple times you saw such badly designed and implemented big balls of mud you might have found it a welcome challenge of some kind, something to prove your skill among your peers.

Now, after having attended conferences, after having read the books and admired the best codebases, those developed in companies than care and are proud of their DevEx; now you see it for what it is after all, shovelware.

Load more comments