Logo
BASIC: Where GOTOs roam free.
  • 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

Portable-code Memes

Posts tagged with Portable-code

Architecture Dependent Chars

C++ Programming Hardware
20 days ago 125.4M views 0 shares
Architecture Dependent Chars
Picture a bell curve where the vast majority of developers confidently proclaim "one char equals one byte!" because they've only ever coded on systems where that's true. Meanwhile, the galaxy-brain developers on both ends are sweating bullets using sizeof(char) because they've been traumatized by the fact that char size can technically be architecture-dependent in C/C++. Sure, the C standard guarantees sizeof(char) is always 1... but 1 what? One byte! And how big is a byte? Well, that's where things get spicy—it's typically 8 bits, but the standard only requires it to be at least 8 bits. Some exotic architectures have had 9-bit, 16-bit, or even 32-bit "bytes." So while Mr. Confident in the middle is technically right 99.9% of the time, the paranoid devs writing portable code for embedded systems or ancient hardware are out here future-proofing like their lives depend on it.

Today's picks

KOORUI 34-inch Curved Ultrawide WQHD 3440×1440 Gaming Monitor, 165Hz 1000R- PIP/PBP, 1ms(MPRT), HDR400, DCI-P3 95%, FreeSync Premium, 1 x DP 1.4 & 2 x HDMI 2.0, Tilt Height Swivel Adjustment, 34E6UC

KOORUI 34-inch Curved Ultrawide WQHD 3440×1440 Gaming Monitor, 165Hz 1000R- PIP/PBP, 1ms(MPRT), HDR400, DCI-P3 95%, FreeSync Premium, 1 x DP 1.4 & 2 x HDMI 2.0, Tilt Height Swivel Adjustment, 34E6UC

Affiliate
$269.99
When The AI Optimization Hits

When The AI Optimization Hits

AI
1.9M views 1 month ago
She Should Have Asked The Devs First

She Should Have Asked The Devs First

Webdev
604.9K views 5 months ago