this post was submitted on 05 Apr 2025
140 points (88.5% liked)

Programmer Humor

22250 readers
796 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
you are viewing a single comment's thread
view the rest of the comments
[–] heavydust@sh.itjust.works 48 points 2 days ago (3 children)

No debate, std::endl can be a disaster on some platforms due to flushing crap all the time.

[–] Rednax@lemmy.world 1 points 14 hours ago

Considering std::cout should only directly be used when you are too lazy to place breakpoints, I totally get the decision to auto-flush.

[–] mmddmm@lemm.ee 36 points 1 day ago (2 children)

It's a very C++ thing that the language developers saw the clusterfuck that is stream flushing on the kernel and decided that the right course of action was to create another fucking layer of hidden inconsistent flushing.

[–] jdeath@lemm.ee 2 points 16 hours ago

programmers manage to do stupid shit in every language. i was wondering if there was a way to stop them, and golang comes close but maybe proves it can't be done. idk!

I hear C++ was greatly inspired by the fifth circle of hell.

[–] joyjoy@lemm.ee 20 points 2 days ago

Just because the box says something is flushable doesn't mean you should flush it.