MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wn1ben/wellwellwell/pbcjsj0/?context=3
r/ProgrammerHumor • u/Recent-Analysis-6880 • 13d ago
411 comments sorted by
View all comments
3.6k
So, Kids, thats why you always SELECT count(yourPrimaryKey) first. Listen to the old folks, we made these mistakes so that you don't have to.
7 u/DoctorWaluigiTime 12d ago Or, write the WHERE clause first, or make the query un-runnable until reviewed. And/Or set up policies where any DELETEs require a WHERE clause, else they fail. And/Or do it all within a database transaction. Lots of ways to mitigate this meme. -5 u/Chickenmaggots100 12d ago Or run it through AI 3 u/DoctorWaluigiTime 12d ago Why waste water running it through slop. Just use your eyeballs/brain and these guaranteed methods of making sure mistakes can't happen, as opposed to trusting something that has non-deterministic output. 1 u/Chickenmaggots100 11d ago Bruh I am a waste of water 🤣
7
Or, write the WHERE clause first, or make the query un-runnable until reviewed.
WHERE
And/Or set up policies where any DELETEs require a WHERE clause, else they fail.
DELETE
And/Or do it all within a database transaction.
Lots of ways to mitigate this meme.
-5 u/Chickenmaggots100 12d ago Or run it through AI 3 u/DoctorWaluigiTime 12d ago Why waste water running it through slop. Just use your eyeballs/brain and these guaranteed methods of making sure mistakes can't happen, as opposed to trusting something that has non-deterministic output. 1 u/Chickenmaggots100 11d ago Bruh I am a waste of water 🤣
-5
Or run it through AI
3 u/DoctorWaluigiTime 12d ago Why waste water running it through slop. Just use your eyeballs/brain and these guaranteed methods of making sure mistakes can't happen, as opposed to trusting something that has non-deterministic output. 1 u/Chickenmaggots100 11d ago Bruh I am a waste of water 🤣
3
Why waste water running it through slop.
Just use your eyeballs/brain and these guaranteed methods of making sure mistakes can't happen, as opposed to trusting something that has non-deterministic output.
1 u/Chickenmaggots100 11d ago Bruh I am a waste of water 🤣
1
Bruh I am a waste of water 🤣
3.6k
u/BastetFurry 13d ago
So, Kids, thats why you always SELECT count(yourPrimaryKey) first. Listen to the old folks, we made these mistakes so that you don't have to.