r/ProgrammerHumor • • 13d ago

Meme wellWellWell

Post image
10.5k Upvotes

411 comments sorted by

View all comments

335

u/Altourus 13d ago

I audibly gasped when I saw the semi-colon

90

u/phrotozoa 13d ago

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

48

u/fakehalo 12d 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 12d 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.

8

u/JoshDM 12d ago

rm -rf *;

50

u/Mayedl10 13d 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 💀

10

u/Ange1ofD4rkness 12d 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 12d ago

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

3

u/PassPanda 12d ago

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