[๐ฝ].pop() == ๐ฟ
this post was submitted on 27 Aug 2024
137 points (100.0% liked)
Programmer Humor
852 readers
16 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
"๐ด".push() = "๐ฒ๐คธ"
"โน๏ธ".reverse() == "โน๏ธ"
You're no fun
Look closer at the beauty mark, I flipped the emoji
wasn't it
๐
.
r
e
v
e
r
s
e
()
Then โbโ backwards would have to be โdโ
"E".reverse() == "โ"
Be the operator overload you wish to see in the world
Also, it should turn an error into an empty but successful call. /s
Calling reverse()
on a function should return its inverse
isprime.reverse(True)
// outputs 19 billion prime numbers. Checkmate, atheists.
It's a just a joke, but I feel like that actually says something pretty profound about duck typing, and how computable it actually is.
"๐".concat() = "๐ผ"
but
"๐".reverse() == "๐"
JavaScript taking notes
You could implement that on a chat, but I wouldn't do that on a string
Where's your sense of adventure?!