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

Show all comments

Showing thread 36 of 299

cultofmetatron2 replies#
38 here, I've definitely noticed a bit of a decline in overall power a year ago.

Have you looked into what you're eating and doing for exercise? You definitely cant power through brainfog with caffeine anymore.
try the following to get yourself back on track 1. first meal of the day should be a filet of fatty fish like salmon with skin. if you can't afford this, use a high quality fish oil pill like nordic naturals. keep it refrigerated. omega3 fatty acids are prone to oxidation at roon temperature and there are no official stadards for it in america)
2. limit carbs to whole foods like sweet potatoes, yucca, potatos
3. cut out all sugar outside of whole unprocessed fruit. (juice doesn't count)
4. have a side of greens with each meal
5. start lifting weights, (triggers release of HGH)
6. choose one day per week to do a 24 hour fast.
after 2 weeks, you'll start to feel your brain come back

denton-scratch#
> first meal of the day should be a filet of fatty fish like salmon with skin.

Kippers!
I don't know if they ever had them in the USA. They seem to be seriously out of fashion in the UK; in the seventies, supermarkets used to sell them in plastic sachets, but nowadays it seems the only way to get them is online (or maybe you live in a town with a real fishmongers).
I don't generally like fish, but I'd eat kippers if I could get them.

threadweaver341 reply#
> 3. cut out all sugar outside of whole unprocessed fruit. (juice doesn't count)

Juice might as well be soda when it comes to sugar.

cultofmetatron#
I agree,

in retrospect i realize that paren could be read two ways. to be clear, I want to iterate that juice doesn't count as an unprocessed fruit.
Avoid juice like the plague!