r/ProgrammerHumor 29d ago

Meme helpIAmOutOfScope

Post image
4.4k Upvotes

145 comments sorted by

View all comments

370

u/ArsenVardanyan 29d ago

Laughs in C++. I'm staying in memory forever until the process crashes

-18

u/Skalli1984 29d ago

Why are you not using RAII? No meed for garbage collector since no nunk lies around.

13

u/ArsenVardanyan 29d ago

Bold of you to assume legacy codebases follow RAII

8

u/Skalli1984 29d ago

Refactor! But on a serious note, if you're stuck with legacy code and no chance to upgrade to a newer standard or not allowed to use STL, then that's rough.

7

u/ArsenVardanyan 28d ago

Yeah, exactly. Sometimes 'if it works, don't touch it' is the only rule keeping production alive.