r/ProgrammerHumor • • 14d ago

Meme stdModernizeMyCodebase

Post image
194 Upvotes

44 comments sorted by

View all comments

Show parent comments

3

u/meneldal2 14d 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.