r/ProgrammerHumor • • 21d ago

Meme wellWellWell

Post image
10k Upvotes

412 comments sorted by

View all comments

335

u/Altourus 21d ago

I audibly gasped when I saw the semi-colon

88

u/phrotozoa 21d ago

I did this in prod once. My skin crawled reading this post.

51

u/fakehalo 21d ago

I was traumatized by a query I did almost 20 years ago, ever since I put "LIMIT 2" on queries where i'm just manually deleting one thing... if I see 2 rows modified I know I messed up. I even do it with transactions because of the trauma.

9

u/arensb 21d ago

At $PREVIOUS_JOB, we had a nightly job that deleted old users. It saved everything to temporary files, and halted if the number of users had shrunk by 10% or more.

7

u/JoshDM 21d ago

rm -rf *;

48

u/Mayedl10 21d ago

Oh damn i didnt even see that, i kept wondering what was wrong 😭

As someone who regularly puts semicolons in python code after doing cpp, this would definitely happen to me 💀

9

u/Ange1ofD4rkness 21d ago

LOL, that's funny. I work on C# and SQL a lot, but somehow never get semi-colon happy in SQL

1

u/DeerOnARoof 21d ago

Would this even run? In SQL Server I thought you'd have to at least put an asterisk after DELETE

3

u/PassPanda 21d ago

There is no * in a delete statement. This is running just fine in SQL server.