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

Programmer Humor

25649 readers
1830 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
 
all 24 comments
sorted by: hot top controversial new old
[–] regdog@lemmy.world 1 points 6 hours ago

Joke content aside, that image is very poorly crafted. The last square is not even a square!

[–] paulbg@programming.dev 2 points 1 day ago (1 children)

hard to be an engineer these days.

[–] NigelFrobisher@aussie.zone 2 points 1 day ago

I genuinely heard this given as advice yesterday.

[–] dalekcaan@feddit.nl 50 points 1 day ago (3 children)

Vibe coder: DO NOT DELETE THE DATABASE. DO NOT DELETE THE DATABASE. DO NOT DELETE THE DATABASE.

Chatgpt: All I heard was "delete the database" three times.

[–] ulterno@programming.dev 4 points 1 day ago

Some guy outside the company: Why don't you just remove the ability to delete the database from the API?
The guy that made the thing vibeable before being laid-off: There is no API, I just piped the ChatGPT output to sh

[–] ChickenLadyLovesLife@lemmy.world 35 points 1 day ago* (last edited 1 day ago) (3 children)

I remember my first day of my first professional programming job back in 1996. I had just learned SQL that morning (which I'd never even heard of before) and that afternoon I forgot to add a WHERE clause to a DELETE command. Good times ...

Fortunately this was in production and not in any important environment like development or test.

[–] dbx12@programming.dev 4 points 1 day ago (1 children)

That's why I start my dangerous queries with a broken first word like ELETE FROM table... and do a proofread before adding the D. Saves you from annoying mistakes either by stupidity or fat fingering the enter key.

[–] ChickenLadyLovesLife@lemmy.world 3 points 23 hours ago

do a proofread before adding the D

Always think twice before bringing the D.

[–] cass80@programming.dev 10 points 1 day ago (1 children)

If they gave a newbie full r/w creds to a prod db, that's 100% on them and not you.

[–] ChickenLadyLovesLife@lemmy.world 7 points 1 day ago (1 children)

Lol "credentials". This was done directly on the server, which was kept always logged in with the admin account so anybody in the server room could access it. It was OK though, this was just a small company ... just Reliance Electric, now part of Rockwell Automation.

And you thought "security through obscurity" was bad - this was "security through apathy".

[–] squaresinger@lemmy.world 6 points 1 day ago

That was the 90s. It's so long ago, we've come so far, so luckily there is no way any respectable company in 2025 does anything like that anymore.

Meanwhile: There's me joining a ~400k employee corporation half a year ago to find out that they don't have a dev env and testing is done on production, we just have to not push the "publish" button to keep our tests in preview mode instead of going live in our customer-facing ecom solution. 😬

[–] otter@lemmy.ca 11 points 1 day ago* (last edited 1 day ago)

That's an actual problem with some of them. It chunks up the prompt and assigns weights to different parts, and doesn't understand the original intent

Saying "No food on the plate" might have it decide "plate + food + no"

Compared to saying "empty plate" for example

[–] TabbsTheBat@pawb.social 91 points 2 days ago (4 children)

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

if getting.hacked == true; don't

[–] Korne127@lemmy.world 97 points 2 days ago (1 children)
[–] Keyboard@lemmy.world 2 points 1 day ago

😂😂😂😂

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

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

[–] TabbsTheBat@pawb.social 24 points 2 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 2 days ago (1 children)

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

[–] ulterno@programming.dev 1 points 1 day 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 17 hours 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@infosec.pub 19 points 2 days ago

The explicit comparison to true makes it even better.

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

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

But I just asked Chat GPT and it said yeah.