Logo
Tabs vs Spaces: The eternal holy war.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • Csharp Csharp
  • 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

Bitfields Memes

Posts tagged with Bitfields

Turns Out Floats Are Just Structs

C++ Programming Debugging Math
10 months ago 512.7K 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

Git Official Logo/Word T-Shirt White T-Shirt

Git Official Logo/Word T-Shirt White T-Shirt

Affiliate
$19.99
My Code Is Self-Documenting

My Code Is Self-Documenting

Programming
276.9K views 5 months ago
GearScouts.com

GearScouts.com

Sponsored
Power stations