this post was submitted on 09 May 2026
580 points (99.8% liked)

Programmer Humor

31311 readers
1170 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
 
top 35 comments
sorted by: hot top controversial new old
[–] LodeMike@lemmy.today 7 points 2 hours ago (2 children)

Doesn't go actually have generics?

[–] dbx12@programming.dev 10 points 2 hours ago

Didn't have them nine years ago. Let alone three (?).

[–] anon_8675309@lemmy.world 5 points 2 hours ago

That’s the problem with the internet, it has no memory.

[–] yetAnotherUser@lemmy.ca 21 points 4 hours ago

Uncaffeinated needs Lisp in their life. The programming language doesn't have a feature you need? Implement it yourself 👍

[–] apftwb@lemmy.world 103 points 7 hours ago* (last edited 7 hours ago) (4 children)

<>

These are angle brackets

ᐸᐳ

These are Canadian Aboriginal Syntax Blocks

[–] kivihiili@lemmy.blahaj.zone 4 points 1 hour ago* (last edited 1 hour ago)

mm our font renders them basically the same hehe

screenshot:

[–] boonhet@sopuli.xyz 23 points 3 hours ago

Most compilers tell you what's up these days, but

;

Greek question mark

;

Semicolon

[–] raspberriesareyummy@lemmy.world 13 points 4 hours ago

Corporate needs you to find....

[–] ruuster13@lemmy.zip 5 points 4 hours ago

There's room for my mom and your mom in programming.

[–] Australis13@fedia.io 98 points 8 hours ago (2 children)

I don't know whether to be impressed or horrified.

[–] obelisk_complex@piefed.ca 65 points 8 hours ago

"Both" is also acceptable.

[–] bitjunkie@lemmy.world 13 points 7 hours ago
[–] slazer2au@lemmy.world 119 points 9 hours ago (1 children)

Unicode truly is amazing.

Like that fake apple site that uses the Cyrillic A instead of the Latin A.

Or the Greek question mark being a different code to Latin question marks.

[–] gkaklas@lemmy.zip 50 points 8 hours ago* (last edited 8 hours ago) (2 children)

Greek-Latin question marks

Actually the Greek question mark (;) looks like the Latin semi-colon (;)!

Last time I looked it up I think I found they are the same characters, and I tried compiling C with a Greek question mark instead of a semi-colon and it compiled fine! But I'm curious if it was because of something else, like my computer's keyboard layout, or the compiler simply being able to handle them 🤔

[–] VindictiveJudge@lemmy.world 15 points 5 hours ago (1 children)

Wait, does C read like valley girl speech in Greek?

[–] raspberriesareyummy@lemmy.world 4 points 4 hours ago

Shit - the next five weeks I'll read C++ lines in upspeak in my head :(

[–] palordrolap@fedia.io 29 points 7 hours ago (1 children)

Something somewhere was definitely doing the conversion for you, but it could have been your editor, the compiler or something in between like a C preprocessor directive getting loaded in by your configuration.

[–] 418_im_a_teapot@sh.itjust.works 1 points 5 hours ago (1 children)

I'd be pissed if it was my editor. A compiler used on a global scale would make sense.

[–] raspberriesareyummy@lemmy.world 7 points 4 hours ago

Nah, I would absolutely want my compiler to error out hard on characters that are not allowed per the standard.

[–] trem@lemmy.blahaj.zone 32 points 7 hours ago

I had to start reading that three times over, because I saw they mentioned "Canadian" and just assumed the angle brackets are a joke in reference to the Canadians in South Park:

Drawn characters with angles for their mouths.

[–] pooberbee@lemmy.ml 56 points 8 hours ago

My old job legitimately did this in C++ with a Perl script because we had to be able to build on some weird, old systems and couldn't use C++ templates.

[–] poopsmith@lemmy.ml 29 points 8 hours ago (3 children)

The OOP goons eventually won and Go added generics a few years back.

[–] gnutrino@programming.dev 10 points 5 hours ago

Generics aren't really OOP, OOP tends to use run time dynamic dispatch through inheritance. Generics come from functional programming type constructors.

[–] Corbin@programming.dev 15 points 5 hours ago

You're thinking of architecture astronauts when talking about generics. The biggest win of the object-oriented folks was to get a garbage collector included by default; compare and contrast with Rust, which ended up not having garbage collection.

[–] freeman@sh.itjust.works 5 points 5 hours ago
[–] 30p87@feddit.org 47 points 9 hours ago (2 children)
[–] einkorn@feddit.org 38 points 8 hours ago

They were too preoccupied with whether they could instead of asking whether they should.

[–] Deebster@infosec.pub 17 points 9 hours ago (2 children)

I wonder if you could write a valid program in two different languages using this technique.

[–] 9point6@lemmy.world 35 points 8 hours ago (1 children)

You can do it with any language where whitespace doesn't matter and Whitespace

[–] SmackemWittadic@lemmy.world 5 points 7 hours ago* (last edited 7 hours ago) (1 children)

That's what I use to show people the exact message I sent before. It gets around any app that doesn't let you send blank messages. I have it saved on my clipboard for this

[–] Natanael@slrpnk.net 17 points 8 hours ago (1 children)

Absolutely, that's a polyglot file

[–] vrek@programming.dev 25 points 8 hours ago (1 children)

Not quite this exact case but I love showing people https://github.com/mame/quine-relay

It has 128 languages, it starts with ruby which prints out its own source code in Scala, then the Scala program executes to generate the next source code, repeat for 128 languages and eventually returns to the original ruby code.

For extra fun, look at the source code on a large monitor.

[–] cypherpunks@lemmy.ml 3 points 6 hours ago

amazing! it's great to see that is still being maintained after so many years.