Menu
The first computer bug was an actual bug.
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
Comparison bug Memes
Posts tagged with Comparison bug
Compare Floats Before You Round
Debugging
Programming
Testing
Iot
Math
9 months ago
403.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.
Today's picks
Either Experience Means Anything Or It Does Not
Programming
2.1M views
3 days ago
Visualising Air-Flow With Cat Hair
Hardware
494.8K views
14 days ago
Mind Reader Extendable Monitor Stand, Adjustable Desktop Riser for Dual Monitors, Printers, Laptops, TV, 31.5–40 Inch Width, 88 lb Capacity, Metal and MDF Wood, Black
Affiliate
$39.99