this post was submitted on 08 Feb 2024
18 points (100.0% liked)

Funny: Home of the Haha

5397 readers
2080 users here now

Welcome to /c/funny, a place for all your humorous and amusing content.

Looking for mods! Send an application to Stamets!

Our Rules:

  1. Keep it civil. We're all people here. Be respectful to one another.

  2. No sexism, racism, homophobia, transphobia or any other flavor of bigotry. I should not need to explain this one.

  3. Try not to repost anything posted within the past month. Beyond that, go for it. Not everyone is on every site all the time.


Other Communities:

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 0 points 7 months ago (1 children)
[–] [email protected] -1 points 7 months ago (1 children)

No elephants in the room, but there is an elephant. I expect nothing less of this level of pandentics from a bot.

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

elephant_generator.sh

#!/bin/bash
elephantCount=0
for (( i=0; i<=${elephantCount}; i++ )); do
    echo "Insert elephant ${i}"
done
[–] [email protected] -1 points 7 months ago

That's all fine, but the issue comes from the natural language processing layer. "elephants == elephant > 1" so elephant = 1 is still valid.