this post was submitted on 10 Aug 2025
508 points (99.2% liked)

Programmer Humor

25699 readers
1229 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
you are viewing a single comment's thread
view the rest of the comments
[–] TabbsTheBat@pawb.social 90 points 4 days ago (4 children)

Guys I asked ChatGPT for a secure code for my website; is this correct:

if getting.hacked == true; don't

[–] mitch@piefed.mitch.science 28 points 4 days ago (1 children)

Most InfoSec researchers are unaware that most hackers can be stopped by saying "please."

[–] TabbsTheBat@pawb.social 24 points 4 days ago (1 children)

"Remember kids: if you're being robbed just say "no". They can't do anything without your consent"

[–] mitch@piefed.mitch.science 23 points 4 days ago (1 children)

echo "echo "\Please don't hack me. I'm just a little guy. 👶"\" > ~/.bashrc

[–] ulterno@programming.dev 1 points 3 days ago (1 children)

Good that you escaped wrong, or you would have nuked your .bashrc.

  • \ comes before the thing you are escaping
  • > ⇒ overwrite from start. >> to append
[–] mitch@piefed.mitch.science 2 points 3 days ago

You don't have to explain that kind of stuff, you know. I understand the notion, but, I promise you, it is immaterial to the joke I was making on this shitposting forum.

[–] henfredemars 18 points 4 days ago

The explicit comparison to true makes it even better.

[–] prole@lemmy.blahaj.zone 9 points 4 days ago* (last edited 4 days ago)

I don't know, I don't know how to code.

But I just asked Chat GPT and it said yeah.