this post was submitted on 19 Nov 2025
450 points (93.3% liked)

Programmer Humor

27673 readers
489 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
[–] Jankatarch@lemmy.world 50 points 2 weeks ago* (last edited 2 weeks ago) (4 children)

C++ lets you assign variables with <%%> in case your parents were killed by an equals sign.

[–] entwine@programming.dev 12 points 2 weeks ago (2 children)

TIL about bat! Looks awesome!

Look into batman too. Its like bat but for man pages

[–] djmikeale@feddit.dk 4 points 2 weeks ago

Bat is really cool - I share your enthusiasm! As far as I remember, the repo for bat has a bunch of example use cases that I hadn't thought of, fyi!

[–] blobchoice@feddit.uk 7 points 2 weeks ago

Finally, someone gets it

I have the perfect module to use this once. Most people will see it and will figure out that it is doing what it should, but no one can change it because the file will be LFS locked like 99% of the time.

[–] marcos@lemmy.world 3 points 2 weeks ago (1 children)

What is happening there?

Is it about templates? I can't find any reference for that syntax.

[–] Jankatarch@lemmy.world 7 points 2 weeks ago* (last edited 2 weeks ago) (1 children)
[–] marcos@lemmy.world 6 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Oh, I didn't know about digraphs at all. C++ is a really big language.

And wow, that's a well hidden footgun.

[–] ulterno@programming.dev 1 points 1 week ago (1 children)

Feels like this thing should require an extra flag in case of gcc in this day and age, or a separate compile-time defined variable, specifically for cases where you don't want to require the flag.

[–] marcos@lemmy.world 2 points 1 week ago

To be fair, the biggest footguns are the trigraphs, and now that I tested those do require a flag in gcc.

The digraphs are just hard to search, never used operator symbols.