this post was submitted on 16 Mar 2025
797 points (98.2% liked)

Programmer Humor

21818 readers
1761 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
797
C++ (ani.social)
submitted 1 week ago* (last edited 1 week ago) by kiri@ani.social to c/programmer_humor@programming.dev
 
(page 2) 42 comments
sorted by: hot top controversial new old
[–] heavy@sh.itjust.works 16 points 1 week ago (2 children)

I mean, the comic is fine I guess, but if it implies the Cpp lady is hitting you, it's not. That would be the kernel, the lady did what you told her to do.

[–] senkora@lemmy.zip 13 points 1 week ago

If undefined behavior is triggered anywhere in the program, then it is allowed by the standard for the process to ask the anthropomorphized compiler to punch you.

100% based and standards-compliant comic

[–] qqq@lemmy.world 3 points 1 week ago* (last edited 1 week ago) (1 children)

In some build modes clang will simply put a trap where it sees undefined behavior. https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html

Not saying your wrong, just a fun fact I guess

[–] heavy@sh.itjust.works 1 points 1 week ago

Yeah that is fun, credit where it's due, compilers do a lot of cool work behind the scenes.

[–] recursive_recursion@lemmy.ca 11 points 1 week ago
load more comments