this post was submitted on 12 Aug 2024
1037 points (97.9% liked)

Programmer Humor

19166 readers
575 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 50 comments
sorted by: hot top controversial new old
[–] [email protected] 161 points 1 month ago (3 children)

It looks very weird, but if you put it like abab vs abba, it makes more sense

[–] [email protected] 113 points 1 month ago (5 children)

bdbd is not a palindrome but bddb is

[–] [email protected] 56 points 1 month ago
[–] [email protected] 15 points 1 month ago (5 children)

bddb is my favorite word to pronounce

[–] [email protected] 8 points 1 month ago

I think you just hacked my modem

[–] [email protected] 8 points 1 month ago

do you have to say it while flipping your finger up and down over your lips?

[–] [email protected] 4 points 1 month ago* (last edited 1 month ago)

Is it pronounced like that Super Troopers Porsche song?

load more comments (2 replies)
[–] [email protected] 10 points 1 month ago (2 children)

Yes, baddragonbaddragon is, in fact, not a palindrome.

load more comments (2 replies)
[–] [email protected] 5 points 1 month ago

This is much easier to parse for me than the one in the post. Interesting. I guess letters are easier to abstract

load more comments (1 replies)
load more comments (2 replies)
[–] [email protected] 136 points 1 month ago (2 children)

"()()" is an ambigram, which wikipedia describes as "visual palindromes", for whatever that's worth.

[–] [email protected] 12 points 1 month ago (1 children)
[–] [email protected] 5 points 1 month ago* (last edited 1 month ago)

Oh boy, they have some good ones. You've been missing out.

Edit: Quicksort has a nice one. SVD for linear/matrix operations too.

I'm pretty sure I've seen even better ones that could almost stand as a YouTube video but I can't remember where now

[–] [email protected] 9 points 1 month ago (1 children)

I love that the word ambigram can be made to look as an ambigram whereas palindrome - wtf, could have done so much better with naming that guys.

[–] [email protected] 12 points 1 month ago* (last edited 1 month ago) (1 children)

hippopotomonstrosesquipedaliophobia (Fear of long words) was clearly not defined by anyone suffering from the phobia either.

[–] [email protected] 5 points 1 month ago

Well that's just mean.

[–] [email protected] 53 points 1 month ago

This is an unacceptable glitch in the universe.

It's time to reboot it with a patch.

[–] [email protected] 44 points 1 month ago* (last edited 1 month ago)

Let us substitute: ( - x, ) - y
Thus ()() becomes xyxy
())( becomes xyyx
Now clearly it can be seen, even while high, that the second one is and the first isn’t

[–] [email protected] 26 points 1 month ago

for those too lazy to google,
palindrome /păl′ĭn-drōm″/ noun A word, verse, or sentence, that is the same when read backward or forward. "madam; Hannah; or Lewd did I live, & evil I did dwel."

() () backwards is )( )(
() )( backwards is () )(

[–] [email protected] 25 points 1 month ago

This has ruined my day.

[–] [email protected] 21 points 1 month ago* (last edited 1 month ago) (1 children)

this took me a while but after converting to ascii in hex I get it

"())(" = 40 41 41 40

"()()" = 40 41 40 41

As long your strings aren't null terminated

[–] [email protected] 11 points 1 month ago

As long your strings aren’t null terminated

What kind of monstrous bug prone language would do that?

[–] [email protected] 19 points 1 month ago (1 children)

What about ⊂⁠(⁠(⁠・⁠▽⁠・⁠)⁠)⁠⊃

[–] [email protected] 37 points 1 month ago (1 children)

⊃))⁠・⁠▽⁠・(⁠(⊂

[–] [email protected] 19 points 1 month ago (1 children)

(╯°□°)╯︵ ┻━┻

[–] [email protected] 6 points 1 month ago

┻━┻ ︵╯)°□°╯(

[–] [email protected] 18 points 1 month ago

Why would you do this to me 😭

[–] [email protected] 16 points 1 month ago

Oh god, please no 😄

[–] [email protected] 14 points 1 month ago

That's horrible and horrifying and I'm never gonna sleep again and also I hate you :(

[–] [email protected] 14 points 1 month ago

1212 isn't a palindrome, but 1221 is.

[–] [email protected] 13 points 1 month ago

Had to take a break and come back later before it made sense.

[–] [email protected] 13 points 1 month ago* (last edited 1 month ago) (5 children)

Calm down, everyone. Brackets form a tree structure, and can be represented by a free magma, while strings with concatenation are equivalent to a free monoid. You're essentially asking for the two respective common involutory operations to be connected by this map, just because they're involutory, which put that way is a wild guess at best. In fact, reversing this string produces something outside the range of the map entirely, which is injective and so can't be surjective for combinatorical reasons.

... Yeah I might be the only person that finds that useful.

[–] [email protected] 5 points 1 month ago (1 children)

yeah but that's just like your opinion man

load more comments (1 replies)
load more comments (4 replies)
[–] [email protected] 13 points 1 month ago

I'm not saying I was having a good day before, but this made it that lil bit worse.

[–] [email protected] 11 points 1 month ago

Thank you for letting me hate it as well.

[–] [email protected] 9 points 1 month ago

Yes it does bother me a little that the letters in the latter half of my username can't be written backwards. (Well, some can, and the p can become a q, but then it's not a p any more.)

[–] [email protected] 7 points 1 month ago (1 children)

Best palindrome I ever come across is boob. I heard Jimmy Carr say it, but he could be repeating somebody else's joke.

[–] [email protected] 4 points 1 month ago
[–] [email protected] 6 points 1 month ago

Wild stuff.

[–] [email protected] 5 points 1 month ago (1 children)
[–] [email protected] 13 points 1 month ago (1 children)

The reverse would be ((-))

[–] [email protected] 7 points 1 month ago* (last edited 1 month ago) (1 children)

Wouldn't it be ()-)( as a palindrome?

[–] [email protected] 4 points 1 month ago (1 children)

That's a palindrome because the reverse is the same. The comment above you shows that the one above isn't a palindrome since the reverse is different, not showing a palindrome

[–] [email protected] 4 points 1 month ago

Yeah I realized

[–] [email protected] 5 points 1 month ago

Stupid brain, filling in the gaps when I didn't even want it to...

[–] [email protected] 5 points 1 month ago

fuck that was unexpected

[–] [email protected] 4 points 1 month ago

A palindrome is about symbols. Not the visual representation of those symbols.

load more comments
view more: next ›