Logo
99 bugs in the code, fix one, 127 bugs in the code.
  • 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

Io-operations Memes

Posts tagged with Io-operations

Fun With Floating Point IO

Debugging Programming Algorithms Math
2 months ago 90.8M views 0 shares
Fun With Floating Point IO
You think you'll just quickly test some floating point I/O operations. Should take 20 minutes tops, right? Wrong. Seven hours later you're still debugging why 0.1 + 0.2 doesn't equal 0.3, why your decimal precision is doing interpretive dance, and questioning every life choice that led you to this moment. Floating point arithmetic is one of those "simple" things that will absolutely destroy your soul. Binary representation can't accurately store most decimal fractions, so you end up with rounding errors that compound faster than technical debt at a startup. What starts as a quick bug fix becomes an existential crisis about IEEE 754 standards. Pro tip: Use decimal types for money, embrace epsilon comparisons, and never, EVER assume floating point equality will work the way math class taught you.

Today's picks

Employee Vs Freelancer Vs Founder Vs Vibe Coder

Employee Vs Freelancer Vs Founder Vs Vibe Coder

Programming
291.2M views 26 days ago
Panvola I R Programmer Engineer Gift Ceramic Mug 11oz White | STEM Gift Tech Gifts Ceramic Mug Novelty Drinkware

Panvola I R Programmer Engineer Gift Ceramic Mug 11oz White | STEM Gift Tech Gifts Ceramic Mug Novelty Drinkware

Affiliate
$13.97
If your github doesn't look like this ceiling, don't even bother applying for a Sr. Dev position with us.

If your github doesn't look like this ceiling, don't even bother applying for a Sr. Dev position with us.

Linux
127.7K views 3 years ago