Logo
Regular expressions: Now you have two problems.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

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

Precision error Memes

Posts tagged with Precision error

Compare Floats Before You Round

Debugging Iot Programming Math Testing
1 year ago 497.9K views 0 shares
Compare Floats Before You Round
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.

Lemme Go With Fixed Point

Math Programming Javascript Debugging Algorithms
1 year ago 472.6K views 0 shares
Lemme Go With Fixed Point
Floating point arithmetic: where 0.1 + 0.2 = 0.30000000000000004 but 0.2 + 0.3 = 0.5 exactly. It's like your computer is secretly trolling you with binary representation limitations while pretending to understand decimal math. The mental breakdown with math equations plastered everywhere is the perfect visualization of a developer's soul after spending 3 hours debugging what should be simple arithmetic. Fixed point looking real attractive right now...

Today's picks

SigyoJeom 200PCS Programming Stickers, Coding Stickers

SigyoJeom 200PCS Programming Stickers, Coding Stickers

Affiliate
$7.99
The Literal State Of Nvidia Drivers Lately

The Literal State Of Nvidia Drivers Lately

Hardware
394.8K views 1 year ago
Finally I know what they're saying

Finally I know what they're saying

Javascript
292.8K views 5 years ago