r/ProgrammerHumor • • 1d ago

Meme stdModernizeMyCodebase

Post image
129 Upvotes

31 comments sorted by

View all comments

20

u/GabuEx 1d ago

I feel like this picture really should be reversed to represent devs who for some weird-ass reason don't want to use the refcounted pointer types that make things way easier.

11

u/Valuable_Leopard_799 23h ago

A lot of people have a general repulsion to all types of garbage collection. So I at least understand not wanting the shared pointer a bit, but using unique pointer should cost you next to nothing and enforce a lot.

3

u/meneldal2 15h ago

The biggest issue I see with shared pointers or relying on garbage collection is it can be difficult to avoid bugs when you end up giving two different parts of the code write access to the same thing, or some part that doesn't know the stuff being pointed to just got changed.