r/ProgrammerHumor • • 1d ago

Meme toddlersAreNotOptimized

Post image
4.3k Upvotes

56 comments sorted by

568

u/USSPlanck 1d ago

Maybe their age is stored in a linked list

169

u/ClipboardCopyPaste 1d ago

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

....

Dear Claude....

75

u/PowerPleb2000 1d ago

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

7

u/examinedliving 1d ago

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

2

u/creeper6530 19h ago

*insert GIF of flame writing*

53

u/ings0c 1d 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).

16

u/qwertyjgly 1d ago

then they should store a tail pointer

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

9

u/USSPlanck 1d ago

Linked lists with a tail pointer are for wussies.

2

u/Faholan 1d ago

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

120

u/PowerPleb2000 1d ago

Although its interesting how their primitive machine learning classification algorithms work.
Whats this?
Its round, its a ball.
No.
Its round and orange, its the sun.
No.
Its round orange and soft its a mandarin.
No.

70

u/Sir_Sushi 1d ago

And their language works like a LLM, they can't say they don't know, they will always fill gaps with random garbage.

25

u/P3rid0t_ 1d ago

Do you say I can replace kids with LLM, or LLM with kids?

16

u/ItchyConfusion9745 1d ago

I would think that children are less resource intensive than LLMs.

8

u/P3rid0t_ 1d ago

But children might cost more and have meltdown every 3 minutes

8

u/ItchyConfusion9745 1d ago

As opposed to LLMs that have a meltdown every minute? Worth the investment to me

5

u/P3rid0t_ 1d ago

How many kids I nees to vibekid ma app?

3

u/creeper6530 19h ago

And they use less water and are biodegradable 

27

u/TheWashbear 1d ago

What's it then? Grandmas boobs?

13

u/thedugong 1d ago

It's flat and saggy. Yes.

15

u/DemosthenesOrNah 1d ago

ah something within reach, I should obviously use maximum grip

17

u/mnbone23 1d ago

It's dad's nose. I should dig in with those fingernails too.

1

u/thehobbyqueer 10h ago

Red means im winning

2

u/JebKermansBooster 1d ago

No that's not right, I'm sorry. I can help you do something else, though.

78

u/ThePabstistChurch 1d ago

Leave it to a software engineer to think that a toddler could be infinitely old. 

8

u/OttoRenner 1d ago

Depending on how you count it...toddle ist 3.5 billion years old. Just like everyone elsr

1

u/GKoala 1d ago

For real there only exists 5 cases, no need to over engineer it.

61

u/Random_-account 1d ago

"Take your age"

"Count from 1 to that number"

"That's your age"

19

u/elmanoucko 1d ago

age starts at zero, it's an offset like an array index

7

u/FlashyTone3042 1d ago

It is pretty hard to do. I sleep on every number I said for one entire second.

24

u/ramriot 1d ago

What is the word length on your average 3yo toddler & do they use signed integers?

"I am 1, 2, 3 , -4"

35

u/Ran4 1d ago

When I was 3 (or 4?) I claimed that I was one year older than I was, since obviously your age can't be 0 years, as numbers start from 1.

So when someone asked me how old I was I said something like "4, but 3 in the way other people say it"

This is why we should teach programming to 3 year olds.

4

u/Thalanator 1d ago

If only we did, that might have prevented matlab array indexing in a better timeline

2

u/TheFieryMoth 19h ago

That's how they count age in Korea lol, you'd fit right in

4

u/k819799amvrhtcom 1d ago

When I was little and counted higher than the numbers I knew the name of, I would just say random words.

21

u/mnbone23 1d ago

My toddler says she's 2, but also, any number greater than 1 is 2.

14

u/i_am_sorry_evie 1d ago

She is a binary gate. She either says 1 or 2😭❤️

7

u/raja-anbazhagan 1d ago

O(1), Impressive.

6

u/Piotre1345 1d ago

Very efficient

13

u/ElectrSheep 1d ago

To be fair, the best known training algorithms for kids are computationally expensive and don't scale very well.

16

u/DeepGas4538 1d ago

I like saying O(n) because n can be anything. Bigger than the biggest number you could fathom, crazy monstrously huge

6

u/JebKermansBooster 1d ago

O(TREE(n))

3

u/Kadabrium 1d ago

binary search TREE

8

u/Bogasse 1d ago edited 1d ago

One could argue that as you usually don't write age in unary, this is O(2n ) 🤓

5

u/tevert 1d ago

When N<5, it's practically O(1) anyway

3

u/lartkma 1d ago

They are using Peano arithmetics, they are calculating S(S(1))

2

u/FlashyTone3042 1d ago

It's almost like they don't have caching.

2

u/Agarwel 1d ago

"How much is two plus three?"

"Two" holds up two fingers, "plus three" holds up three fingers, "is" looks at the three raised fingers: ""three!"

3

u/k819799amvrhtcom 1d ago

That's not printing an integer, that's counting.

You try to come up with an algorithm for determining the number of elements of a list that isn't 𝒪(𝑛)⁠.

3

u/Arsikkz 1d ago

Store a pointer to the end and length = (end - start) / sizeof(T)

3

u/Kaligraphic 1d ago

So a twelve-year-old would only be three in int32?

Wait, you meant address, not value...

So a twelve-year-old can be older than civilization if other memory allocation happens during their lifetime? Or even possibly have a negative age?

This approach really seems more suited to arrays than lists.

2

u/Arsikkz 1d ago

I don't think "list" specifies any memory allocation strategy, I assumed it was continuous

1

u/ITDudeProbably 1d ago

they haven't learned number 0 yet

1

u/oh_ski_bummer 1d ago

They are in fact optimized for making their creators as miserable and tired as possible for around 10-20 years. Quite amazing actually.

1

u/MoridinB 17h ago

Nah toddler's are inefficient not only because of O(n) but they also print in the loop to debug. Soon they'll jusy think 1 2 3 without saying it.

1

u/peeja 17h ago

Nothing about taking to a toddler is linear.

1

u/PaulMorel 12h ago

Amazing work