this post was submitted on 31 Aug 2025
312 points (96.4% liked)

Programmer Humor

26166 readers
768 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

Finally I have a valid reason to learn about memory management. It was also hella weird when encountering it.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] entwine@programming.dev 2 points 5 days ago (1 children)

being inserted automatically.

Aka the entire point of RAII

The point of RAII is that a resource is allocated and freed in the same scope.

You can free it with an explicit call to a destructor, an implicit call, or with memory allocated on the stack, just wait for the stack frame to be exited.