Logo
What's a programmer's favorite place? The foo bar!
  • 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

Char vs int Memes

Posts tagged with Char vs int

Why Shouldn't I Save 5 Chars As An Int?

Programming Debugging C++ Algorithms
8 months ago 457.9K views 0 shares
Why Shouldn't I Save 5 Chars As An Int?
That moment when you're optimizing memory usage and think "You know what? A char is 8 bits but I only need to store 5 characters... I could totally squeeze that into a 32-bit integer." Then you spend 6 hours bit-shifting and masking when you could've just used an array and gone home early. But hey, you saved 3 whole bytes! Practically a hero of computer science.

Today's picks

Arteck Mechanical 2.4G USB Wireless Performance Keyboard, Tacktile Quiet Brown Switches, Stainless Steel Low Profile for PC/Desktop/Laptop/TV and Windows 11/10 Built in Rechargeable Battery Black

Arteck Mechanical 2.4G USB Wireless Performance Keyboard, Tacktile Quiet Brown Switches, Stainless Steel Low Profile for PC/Desktop/Laptop/TV and Windows 11/10 Built in Rechargeable Battery Black

Affiliate
$39.99
Definition of infinity

Definition of infinity

Programming
69.6K views 3 years ago
HTML(Better resolution)

HTML(Better resolution)

Python
91.1K views 3 years ago