this post was submitted on 05 Aug 2024
209 points (92.7% liked)

Programmer Humor

19463 readers
373 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 1 year ago
MODERATORS
 

A screenshot from youtube, Virbox

you are viewing a single comment's thread
view the rest of the comments
[–] SpaceNoodle@lemmy.world 26 points 3 months ago (4 children)

This is why I only allocate on the stack

[–] xmunk@sh.itjust.works 19 points 3 months ago (2 children)

People who are enthusiastic about using pointers in C++ are doing it wrong. Never use a pointer when you can get away with a reference.

[–] KindaABigDyl@programming.dev 23 points 3 months ago

For C++, yes. But "reference" is just a way of using the pointer when it comes to C

[–] SpaceNoodle@lemmy.world 8 points 3 months ago

Sure, but that's technically allocation-agnostic either way.

[–] ryannathans@aussie.zone 13 points 3 months ago (1 children)

Based nasa compliant engineer

[–] SpaceNoodle@lemmy.world 9 points 3 months ago

This guy gets it

Static allocation for the SIL ratings

[–] magic_lobster_party@kbin.run 12 points 3 months ago

Stack overflow intensifies

[–] 30p87@feddit.org 3 points 3 months ago

I only use the registers.