Logo
Sleep is for the weak. And for while loops.
  • 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

Buffer-size Memes

Posts tagged with Buffer-size

Kitchenware Optimization

Programming Backend Algorithms
10 months ago 294.4K views 0 shares
Kitchenware Optimization
Ah yes, the eternal truth of software engineering. While normal people debate philosophy, programmers look at the same glass and immediately think "why are we using a 500ml container when we only need 250ml? This is wasting memory." You've allocated a buffer that's double the size you actually need, and now you're paying for it in both RAM and existential dread. Could've used a smaller glass, could've used a dynamic array that grows as needed, but no—someone on Stack Overflow said "just make it bigger to be safe" and here we are. The real kicker? That glass will never get resized. It'll sit there in production for 5 years, half-full, mocking every performance review where you promise to "optimize resource usage."

Today's picks

RK ROYAL KLUDGE S108 Typewriter Keyboard, Retro Mechanical Gaming Keyboard Wired 108 Keys with RGB Backlit Sidelight, Detachable Wrist Rest, Round Keycaps Blue Switches - Black

RK ROYAL KLUDGE S108 Typewriter Keyboard, Retro Mechanical Gaming Keyboard Wired 108 Keys with RGB Backlit Sidelight, Detachable Wrist Rest, Round Keycaps Blue Switches - Black

Affiliate
$59.99
If the universe is a simulation, why can't we notice any glitches?

If the universe is a simulation, why can't we notice any glitches?

Programming
95.3K views 5 years ago
my code is never wrong

my code is never wrong

Programming
85.4K views 3 years ago