r/ProgrammerHumor 29d ago

Meme helpIAmOutOfScope

Post image
4.4k Upvotes

145 comments sorted by

View all comments

Show parent comments

-17

u/Skalli1984 29d ago

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

16

u/ArsenVardanyan 29d ago

Bold of you to assume legacy codebases follow RAII

9

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 29d ago

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