this post was submitted on 12 Aug 2024
1038 points (97.8% liked)

Programmer Humor

19813 readers
159 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 2 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 161 points 4 months ago (3 children)

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

[–] [email protected] 113 points 4 months ago (5 children)

bdbd is not a palindrome but bddb is

[–] [email protected] 56 points 4 months ago
[–] [email protected] 15 points 4 months ago (5 children)

bddb is my favorite word to pronounce

[–] [email protected] 8 points 4 months ago

I think you just hacked my modem

[–] [email protected] 8 points 4 months ago

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

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

Is it pronounced like that Super Troopers Porsche song?

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

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

load more comments (2 replies)
[–] [email protected] 5 points 4 months 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 4 months ago (2 children)

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

[–] [email protected] 12 points 4 months ago (1 children)
[–] [email protected] 5 points 4 months ago* (last edited 4 months 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 4 months 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 4 months ago* (last edited 4 months ago) (1 children)

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

[–] [email protected] 5 points 4 months ago

Well that's just mean.

[–] [email protected] 53 points 4 months ago

This is an unacceptable glitch in the universe.

It's time to reboot it with a patch.

[–] [email protected] 44 points 4 months ago* (last edited 4 months 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 4 months 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 4 months ago

This has ruined my day.

[–] [email protected] 21 points 4 months ago* (last edited 4 months 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 4 months ago

As long your strings aren’t null terminated

What kind of monstrous bug prone language would do that?

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

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

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

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

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

(╯°□°)╯︵ ┻━┻

[–] [email protected] 6 points 4 months ago

┻━┻ ︵╯)°□°╯(

[–] [email protected] 18 points 4 months ago

Why would you do this to me 😭

[–] [email protected] 16 points 4 months ago

Oh god, please no 😄

[–] [email protected] 14 points 4 months ago

1212 isn't a palindrome, but 1221 is.

[–] [email protected] 14 points 4 months ago

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

[–] [email protected] 13 points 4 months ago

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

[–] [email protected] 13 points 4 months ago* (last edited 4 months 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 4 months 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 4 months ago

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

[–] [email protected] 11 points 4 months ago

Thank you for letting me hate it as well.

[–] [email protected] 9 points 4 months 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 4 months 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 4 months ago
[–] [email protected] 6 points 4 months ago

Wild stuff.

[–] [email protected] 5 points 4 months ago

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

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

The reverse would be ((-))

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

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

[–] [email protected] 4 points 4 months 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 4 months ago

Yeah I realized

[–] [email protected] 5 points 4 months ago

fuck that was unexpected

[–] [email protected] 4 points 4 months ago

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

load more comments
view more: next ›