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

Programmer Humor

21988 readers
2966 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
798
C++ (ani.social)
submitted 1 week ago* (last edited 1 week ago) by kiri@ani.social to c/programmer_humor@programming.dev
 
you are viewing a single comment's thread
view the rest of the comments
[–] Gladaed@feddit.org 1 points 1 week ago (1 children)

If you tell the Compiler to be careful and avoid writing c code c++ does not segfault. This is a user error.

You can technically even write Assembler code and compile with gpp.

[–] T156@lemmy.world 7 points 1 week ago (1 children)

Does it count as user error if the user has to micromanage the compiler?

[–] Gladaed@feddit.org 1 points 1 week ago

Yes. Unless you have a really good reasons there are safe and portable versions you should use instead.