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

Struct Memes

Posts tagged with Struct

Maxerals

Csharp Programming Debugging
1 month ago 539.5K views 0 shares
Maxerals
Someone's IDE autocomplete just had a stroke. You're typing "Minerals" in your Cost struct, and the autocomplete decides to bless you with "Maxerals" instead. It's like when you're confidently typing a variable name and your IDE goes "I know better than you" and suggests something that sounds like a rejected Pokemon evolution. The best part? The developer just rolled with it and now there's a Cost struct with both Minerals AND Maxerals. What's the difference? Nobody knows. Maybe Maxerals are like premium minerals. Or maximum minerals. Or maybe it's just a typo that made it into production because code review was on a Friday afternoon. This is peak "it compiles, ship it" energy right here.

Turns Out Floats Are Just Structs

C++ Programming Math Debugging
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