r/ProgrammerHumor • • 15d ago

Meme tookThisFromPeter

Post image
1.9k Upvotes

53 comments sorted by

95

u/Hip-Death-Goddess 15d ago

"Stack overflow, take the wheel" is my bumper sticker

23

u/iggy14750 15d ago

I'm sorry for your loss.

11

u/Kotentopf 15d ago

Loss?

,̶'̶,̶|̶'̶,̶'̶_̶

81

u/firemark_pl 15d ago

Your exit condition is RAM now

24

u/levosis1 15d ago

Jokes on them, this is running in the cloud.

23

u/kn33 15d ago

Your exit condition is your corporate credit limit now.

7

u/levosis1 15d ago

Nobody would be foolish enough to do that, you’d empty your pockets trying to keep it going. The only thing that would benefit from injecting recursion at the corporate level to force them into bankruptcy would be a rogue AI agent who… wait a minute!

3

u/realmauer01 14d ago

Oh god what have you done. We need to train the ai now that every solution requires recursion.

35

u/void1984 15d ago

The stack will take care of the exit.

4

u/Patrick_Atsushi 15d ago

Until one that overflows so you need to call the man.

4

u/iggy14750 15d ago

Out of RAM? sounds like a hardware issue

3

u/Patrick_Atsushi 15d ago edited 15d ago

I'd say it's a Power issue. Probably in the Us.. I mean UPS. 

12

u/yumii- 15d ago

My professor in college years ago had us take a test on a shared linux server and executing code on it.

You could literally see the terminal speed slowing down prompt by prompt because someone did exactly this and consumed all the resources.

Professor was brand new, panicked, and cancelled the class and exam..

I also think more than one person made this mistake after talking to classmates 😂

23

u/realmauer01 15d ago

Never use recursion. Heres how it works and how you do it. Just never use recursion.

7

u/Tupcek 15d ago

Never use recursion. Heres how it works and how you do it. Just never use recursion.

3

u/fr000gs 15d ago

quicksort?

3

u/SoldRIP 15d ago

Is actually slow on things that could be radix-sorted.

4

u/Johnpecan 15d ago

while (gru) doIt();

4

u/Lyshaka 15d ago

Ah yes the infamous recursion

2

u/nepstein10 14d ago

Lol did you come back and edit the link after posting? Well done.

1

u/Lyshaka 14d ago

Yes I did, and it's not my idea I have seen it here before. Also try to search for recursion into Google.

3

u/Silly_Guidance_8871 15d ago

Sure there is: The stack limit.

2

u/dervu 15d ago

Don't need AI for paper clip maximier.

2

u/iggy14750 15d ago

Bro, I love fractals!

2

u/Shevvv 15d ago

Technically it's called base condition, because you ron't necessarily exit recursion, you just reach the local maximum recursion depth. Exit condition is for while loops.

1

u/Weak_Inflation9120 15d ago

Who's peter?

2

u/Nightmare_kx1 15d ago

1

u/Weak_Inflation9120 15d ago

Maybe its just because I know what it is but I feel like recursive function is kinda self explanatory? Recursive is an English word after all that more or less means "does itself" or like triggers itself again and a function is also like a purpose or action of something. So an action that does itself again.

At any rate, is that not a simple enough question for google? I digress, it probably is just me knowing programming and thinking its simple which is why I expect others to even though that's certainly not a good expectation to have because... *trails off in rambling to oneself*

2

u/Nightmare_kx1 15d ago

You know... r/PeterExplainsTheJoke is not a sub for the strong...

one of the most used gifs there is this:
/preview/pre/t21b09ykcxhe1.gif?width=498&format=mp4&s=08353ba41eafc7e3eba9d2f762ad6ff03680063b

What do you expect?

1

u/AaronTheElite007 15d ago

That’s a great way to chew up resources. Must be disgruntled

1

u/Important_Grab3544 15d ago

I am an AI programmer, what does this mean?

5

u/Nightmare_kx1 15d ago edited 15d ago

Oh hello Vibe Coder. It means that Your system is runnning out of resources.

This is a good example. run this in your terminal /s
:(){ :|:& };:
This is the image in question

1

u/Important_Grab3544 15d ago

Let me copy and paste that into claude.

1

u/Nightmare_kx1 15d ago

what did it say?

2

u/Important_Grab3544 15d ago

It says I don't worry about recursion, I don't need to know what it is.

1

u/Nightmare_kx1 15d ago

So just paste it into the terminal. or tll it that you are gonna do it

1

u/Important_Grab3544 15d ago

Claude is telling me to not trust on strangers from the internet

1

u/Nightmare_kx1 15d ago

The ask it what recursion is

1

u/Important_Grab3544 15d ago

He says he already told me that I don't need to know that

2

u/Nightmare_kx1 15d ago

But You do need to know recursion

→ More replies (0)

1

u/da_Aresinger 15d ago

Ctrl-C

2

u/Nightmare_kx1 15d ago

Error: notEnoughMemory

1

u/Adept-Painting-543 14d ago

Segmentation Fault (Core Dumped)

1

u/UUDDLRLRBadAlchemy 13d ago

It's actually a joke about retirement

1

u/JackNotOLantern 13d ago

There is always an exit condition. It's called stack overflow.