this post was submitted on 09 May 2026
794 points (99.6% liked)

Programmer Humor

31976 readers
1088 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 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] 30p87@feddit.org 50 points 1 month ago (2 children)
[–] einkorn@feddit.org 48 points 1 month ago

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

[–] Deebster@infosec.pub 18 points 1 month ago (2 children)

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

[–] 9point6@lemmy.world 34 points 1 month ago (1 children)

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

[–] SmackemWittadic@lemmy.world 6 points 1 month ago* (last edited 1 month 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 20 points 1 month ago (1 children)

Absolutely, that's a polyglot file

[–] vrek@programming.dev 31 points 1 month 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 1 month ago

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