this post was submitted on 27 Aug 2024
183 points (100.0% liked)

Programmer Humor

418 readers
1 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
 
top 12 comments
sorted by: hot top controversial new old
[โ€“] sus@programming.dev 37 points 1 month ago* (last edited 1 month ago)

but sometimes "๐Ÿ‘๐Ÿฝ".reverse() == "๐Ÿฝ๐Ÿ‘"

[โ€“] i_love_FFT@lemmy.ml 24 points 1 month ago (1 children)

"๐Ÿ™‚".reverse() == "๐Ÿ™ƒ"

[โ€“] jol@discuss.tchncs.de 6 points 1 month ago

Then we need reverseX and reverseY

[โ€“] ABluManOnLemmy@feddit.nl 12 points 1 month ago

"๐Ÿ‡ฎ๐Ÿ‡ช".reverse() = "๐Ÿ‡จ๐Ÿ‡ฎ"

[โ€“] sukhmel@programming.dev 9 points 1 month ago

Yet we live in a world where

"๐Ÿ‡ง๐Ÿ‡ฌ".reverse() == "๐Ÿ‡ฌ๐Ÿ‡ง" and "๐Ÿ‡ฌ๐Ÿ‡ช".reverse() == "๐Ÿ‡ช๐Ÿ‡ฌ"

[โ€“] Lifter@discuss.tchncs.de 5 points 4 weeks ago (1 children)
[โ€“] hydroptic@sopuli.xyz 5 points 3 weeks ago

"A".reverse() == "โˆ€"

Where is your god now?!

[โ€“] MrLLM@ani.social 4 points 1 month ago (1 children)
File "", line 1
    "๐Ÿ‘‰".reverse() = "๐Ÿ‘ˆ"
    ^
SyntaxError: cannot assign to function call
[โ€“] derpgon@programming.dev 8 points 1 month ago (1 children)

It is a font that changes == to one long equals sign.

[โ€“] MrLLM@ani.social 4 points 1 month ago

Oh my bad, that idea didnโ€™t cross my mind.

Traceback (most recent call last):
  File "", line 1, in 
AttributeError: 'str' object has no attribute 'reverse'
[โ€“] Brahvim@lemmy.kde.social 1 points 3 weeks ago (1 children)

What's with the lines of both equals symbols being combined together haha?

[โ€“] hydroptic@sopuli.xyz 1 points 3 weeks ago* (last edited 3 weeks ago)

That's known as a ligature and they're pretty common in many programming-oriented fonts, which usually have stylistic sets with different ligatures for different programming languages that you can optionally enable in your editor's configuration. For example, here's the stylistic sets the Monaspace font offers:

Personally I'm not too fond of ligatures so I never enable any, but many folks do like them.

Edit: and just as a side note, ligatures are super common in many fonts, you just might not notice them. Here's some classic examples from the DejaVu Serif font, with and without a ligature: