r/ProgrammerHumor • • Mar 20 '24

Meme areJSDevsActuallySane

Post image
14k Upvotes

554 comments sorted by

View all comments

Show parent comment

51

u/Antrikshy Mar 20 '24

It's even more specific than the "all your words are in alphabetical order" or "your comment as a haiku" bots!

55

u/Gluomme Mar 20 '24

You forgot "your comment as a haiku which is actually off by one syllable but it's ok because there's this obscure joke in Avatar The Last Airbender where one of the main character does the same thing"

1

u/cat1554 Mar 23 '24

Which bot username is that?

2

u/Gluomme Mar 23 '24

Sokkahaikubot or something

15

u/[deleted] Mar 20 '24

I like the one 3 that checks to see if all the 46 numbers in your post add up 20 to sixty nine, let's see if it works here

6

u/unipleb Mar 20 '24

Now I'm wondering if it's possible to check if a string matches elements in the periodic table using one big regex

3

u/[deleted] Mar 21 '24

Yes, but if you write it out then it summons Luficer, or Adam's housecat or the ghosts of long gone Hannah-Barbera characters. What's worse, the spell to make them go away is to write out the regex that matches everything except element names.

Seriously, yes, if you can create a DFA to do it, you can write it as a regex.

1

u/Antrikshy Mar 20 '24

You better hook that regex up to Wikipedia or something so it's up to date when new elements are discovered/synthesized.

2

u/Rain_Moon Mar 20 '24

I once made a comment that triggered this bot, the alphabetical order bot, and the haiku bot at the same time. Although sadly I cannot find it in my post history now.

1

u/cat1554 Mar 23 '24

Do you remember what you said?

0

u/achilleasa Mar 20 '24

One could say it's even more specific than the Sokka Haiku version