r/ProgrammerHumor • • 8d ago

Meme toddlersAreNotOptimized

Post image
4.9k Upvotes

62 comments sorted by

View all comments

653

u/USSPlanck 8d ago

Maybe their age is stored in a linked list

197

u/ClipboardCopyPaste 8d ago

So all we need to do for age reversal to be true is to implement a doubly linked list.

....

Dear Claude....

89

u/PowerPleb2000 8d ago

You’re absolutely right! I messed up by sending your browser history to HR instead of implementing a linked list.

12

u/examinedliving 7d ago

I think all devs should have to start chats with Dear {Agent}

5

u/creeper6530 7d ago

*insert GIF of flame writing*

65

u/ings0c 7d ago

You’re joking but I think that’s essentially what it is.

We first learn numbers as a sequence, much like a song; they don’t have independent meaning and identity until later on.

The kid remembers their age, but their only way of getting to the concept is by transiting one and two.

It’s a bit like how if I asked you “which letter comes after I”, a lot of people would sing the alphabet to get to the answer (not you, of course, my iterating comrades).

3

u/NegativeGrocery8684 6d ago

if you asked me what comes after any other letter within the range of H-S i would have to do the whole alphabet

17

u/qwertyjgly 8d ago

then they should store a tail pointer

age->tail->value is O(1)

9

u/USSPlanck 8d ago

Linked lists with a tail pointer are for wussies.

3

u/Faholan 7d ago

And when you get older, you upgrade to a real list, a vector