526
submitted 3 days ago* (last edited 3 days ago) by MonkeMischief@lemmy.today to c/programmer_humor@programming.dev

EDIT: I see some comments saying the Mastodon post didn't add anything to it. I agree!

I am a little new to posting so I thought it was polite to include the source.

It was late and at first glance my sleepy mind thought they just saw these two images coincidentally side by side on their phone. Not like it was just a single meme. LOL

Here's the raw image for fellow meme collectors. :)

Original link: https://chaos.social/@gsuberland/116037932568933433

top 13 comments
sorted by: hot top controversial new old

Why did you choose to include the tweet? It adds nothing at all, as the joke is in the image alone.

[-] MonkeMischief@lemmy.today 18 points 3 days ago* (last edited 3 days ago)

(also to @luciferofastora@feddit.org)

Good point and agreed! I'm a little new to posting so I thought it was polite to include the source where I found it.

At first glance I thought the poster coincidentally found these images side by side in their gallery, and that's where the humor was.

Even though that poster clearly got it secondhand too, I didn't wanna be "ripping them off" lol.

I edited the post to include the raw image. Thanks for clearing up community expectations / culture for me though. :)

[-] OpenStars@piefed.social 10 points 2 days ago

Good point and agreed! I’m a little new to posting so I thought it was polite to include the source where I found it.

It absolutely is, and welcome! 😁

[-] luciferofastora@feddit.org 9 points 3 days ago

Welcome to the Fedi-Family then!

[-] MonkeMischief@lemmy.today 8 points 2 days ago

Aw thanks!

<3 long time lurker, seldom poster. 😂

Hoping to change that and contribute more. :)

[-] luciferofastora@feddit.org 7 points 3 days ago

Are we not doing cropping anymore?

[-] FuglyDuck@lemmy.world 58 points 3 days ago

I mean… there’s worse things people have used it for.

[-] diabetic_porcupine@lemmy.world 1 points 2 days ago

I understood that reference?

[-] Jakeroxs@sh.itjust.works 14 points 3 days ago

As a coding noob mostly c#, my guess is there's some functions or similar in C++ that are potentially "dangerous" in some way but commonly used?

[-] nastyyboi@lemmy.world 13 points 3 days ago
[-] Miaou@jlai.lu 4 points 2 days ago

Not specific functions, but as said elsewhere, the language is a mine field that too many joyfully walk upon.

Look up e.g. pointer aliasing. I'd bet most of my colleagues don't have a clue about that (not a risky bet given the crap they write). Thankfully compiler writers know the majority of their users are too lazy to learn the stupid standard in this case (I don't blame them). But not necessarily in other ones.

C++ is a tool designed for expert but used by everyone's Grandma, with the results you could expect.

[-] Zink@programming.dev 5 points 2 days ago

If you do a search for something like "why is Rust safer than C++" you will find multiple examples of the fun ways we can screw ourselves in c/c++, lol.

[-] zerofk@lemmy.zip 3 points 2 days ago

There are many things in C++ that are “undefined behaviour”, UB (and several similar but technically different terms). These may or may not result in an error or warning at compile time. Worse, they usually lead to crashes or even seemingly random behaviour - even in code that is not directly tied to the UB.

The easiest example is memory management and pointers. You can create a new object and assign it to a variable. If you then delete the object, the variable could still point to the deleted object’s memory. And if you use that variable, that’s UB. It will likely crash, but probably not right away, which can be very hard to diagnose.

An interesting fact about UB is that optimisers may assume it does not exist. They can basically reason “well this code path would lead to UB, which can’t exist, so this code path can just be removed”. This could theoretically even affect code that runs before the UB.

this post was submitted on 10 Feb 2026
526 points (98.3% liked)

Programmer Humor

29692 readers
1992 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