Logo
Why do programmers prefer dark mode? Because light attracts bugs!
  • 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

Pointercast Memes

Posts tagged with Pointercast

Turns Out Floats Are Just Structs

C++ Programming Debugging Math
1 year ago 580.5K views 0 shares
Turns Out Floats Are Just Structs
The code reveals floating point numbers for what they truly are: just fancy structs with a sign, exponent, and mantissa wearing a trench coat. The programmer manually constructs a float by setting each field, then casts it back to a float with that sketchy pointer manipulation. And of course, there's the mandatory comment warning you to never actually do this in production because bitfield layout will betray you faster than a coworker who "fixed" your code. Typical C behavior - giving you enough rope to not only hang yourself but the entire dev team.

Today's picks

KTC 34 Inch Ultrawide Curved Gaming Monitor, 3440x1440 UWQHD 180Hz, H34S5

KTC 34 Inch Ultrawide Curved Gaming Monitor, 3440x1440 UWQHD 180Hz, H34S5

Affiliate
$246.99
The Ultimatum of the coding process

The Ultimatum of the coding process

Debugging
77.1K views 3 years ago
NordVPN

NordVPN

Sponsored
VPN