303
you are viewing a single comment's thread
view the rest of the comments
[-] SzethFriendOfNimi@lemmy.world 58 points 2 months ago

Imagine, if you will. A world where string reverse changes the character codes of the string.

What beauty, what wonder would such a world have?

Destruction and despair. Developers unsure why their programs don’t respond correctly. Ships run aground on islands already overcrowded with those who were shipwrecked before. Signal antennas pointed towards the sun with it’s constant noise. Spacecraft whose exhaust melt to slag populated cities as people briefly scream their final terrors of pain and suffering.

This, is a world we should not want to live in. A world you can only find, in the Twilight Zone.

[-] sukhmel@programming.dev 5 points 2 months ago

Nah, this could've been possible with some clever fuckery in defining those emojis' unicode content, like with flags that are not a single point but three independent ones, allowing you to do this:

"πŸ‡§πŸ‡¬".reverse() == "πŸ‡¬πŸ‡§"
"πŸ‡¬πŸ‡ͺ".reverse() == "πŸ‡ͺπŸ‡¬"
[-] n7gifmdn@lemmy.ca 2 points 2 months ago

THANKS. I didn't get the flag joke at first @sukhmel@programming.dev

this post was submitted on 27 Aug 2024
303 points (95.0% liked)

Programmer Humor

19488 readers
913 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 1 year ago
MODERATORS