Menu
Why do Java developers wear glasses? Because they don't C#!
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Backend
Bash
C++
Cloud
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
Equality check Memes
Posts tagged with Equality check
The Single Equals Nightmare
Debugging
Security
Programming
Javascript
Testing
5 months ago
486.8K views
0 shares
Peacefully sleeping until your brain suddenly screams: "WAIT! That code uses a single equals sign for comparison instead of double equals! That's an assignment, not a condition check!" That single character difference between if (user = admin) and if (user == admin) means you're not checking if user equals admin—you're literally making user become admin and then checking if that assignment succeeded (which it always will). Congratulations, you just gave everyone admin access!
Compare Floats Before You Round
Debugging
Iot
Programming
Math
Testing
9 months ago
405.7K views
0 shares
Nothing says "I'm a competent programmer" like waking up at 3:25am to an emergency alert that 72 is dangerously higher than... 72. Classic floating point comparison fail. Somewhere in that thermostat's code, 72.0001 is being compared to 72 with the == operator instead of a proper threshold check. The developer who wrote this is probably the same person who thinks SQL injection is just a fancy way to administer medicine. Future archaeologists will find this thermostat and conclude our civilization collapsed because we couldn't figure out that 72.00000001 ≈ 72.
The Single Equal Sign Of Doom
Security
Debugging
Programming
Javascript
Typescript
10 months ago
333.2K views
1 shares
Sleeping peacefully until your brain jolts you awake at 3:27 AM because you realized you used = instead of == in that authentication code. That single equals sign just gave admin access to literally everyone. Sweet dreams! Nothing quite like the cold sweat of realizing you've accidentally created the world's most generous authorization system. The fix takes 2 seconds but the existential dread lasts forever.
Today's picks
VOXii Auditory Feedback Wireless Headphones - Brain Training air Conduction Bluetooth Headphones, Enhanced Speech, Memory and Attention, for You and Your Children, Help with Autism ADHD
Affiliate
$36.88
The Real Reason We Use CI
Programming
372.7K views
1 year ago
GearScouts.com
Sponsored
Power stations