Logo
Code never lies, comments sometimes do.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • Csharp Csharp
  • All Categories

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Delete-statement Memes

Posts tagged with Delete-statement

It Works But Only One Time

Csharp Programming Debugging Databases Backend
3 hours ago 52.3K views 0 shares
It Works But Only One Time
Someone wrote a method to count employees, but there's a tiny problem: it deletes ALL the employees from the database first, then counts how many are left. Spoiler alert: zero. Every single time after the first run, you're counting an empty table. The function technically works once—before it nukes your entire workforce into the digital void. The best part? They're using using statements for proper resource disposal, so at least the database connection is being cleaned up responsibly while the employee data gets yeeted into oblivion. Priorities, right? Pro tip: maybe fetch the count BEFORE running DELETE FROM. Or better yet, don't run DELETE FROM at all when you just want to count rows. That's what SELECT COUNT(*) is for. Your HR department will thank you.

Spotlight

GearScouts.com

Stop scrolling, start exploring! Find the gear that'll get you off the couch and into the wild. Compare power stations for off-grid adventures, flashlights for midnight hikes, and essentials that make the outdoors your playground. Get Outside →

ErGear Height Adjustable Electric Standing Desk...

ErGear Height Adjustable Electric Standing Desk...
Ad Help us investigate where all those orphaned React components went. 🏚️