Logo
It's not a bug, it's an undocumented feature.
  • 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

String formatting Memes

Posts tagged with String formatting

Printf Vs Sprint F

Programming C++
6 months ago 301.8K views 1 shares
Printf Vs Sprint F
So printf just casually outputs to your console like a printer spitting out paper, while sprintf is literally sprinting with that formatted string like it's competing in the Olympics. The visual pun here is chef's kiss: one function prints (like a printer), the other sprints (like an athlete). Both format strings, but sprintf returns the formatted string instead of dumping it to stdout, making it way more flexible when you need to pass that string around your code at lightning speed. Honestly, whoever came up with these function names in C probably didn't anticipate this level of dad joke potential, but here we are decades later still giggling at it.

Which Side Are You On: The C++ Gang War

C++ Programming
1 year ago 246.3K views 0 shares
Which Side Are You On: The C++ Gang War
Ah, the infamous C++ gang war between \0 and endl. Real programmers know this turf battle well. One side uses the null terminator to end strings like a silent assassin, while the other prefers the more verbose endl to flush streams after a newline. The streets of code get messy when these two cross paths in the same codebase. And somewhere in the distance, a senior developer sighs while using neither and opts for '\n' instead.

Today's picks

SSK M.2 NVME SATA SSD Enclosure, Improved RTL9210B Chip USB 3.2 Gen 2 10Gbps to PCI-E NGFF Adapter, M-Key/B+M Key External SSD Enclosure Aluminum Support UASP Trim 2242/2260/2280

SSK M.2 NVME SATA SSD Enclosure, Improved RTL9210B Chip USB 3.2 Gen 2 10Gbps to PCI-E NGFF Adapter, M-Key/B+M Key External SSD Enclosure Aluminum Support UASP Trim 2242/2260/2280

Affiliate
$15.00
AI Ethics

AI Ethics

Programming
140.8K views 3 years ago
We've been exposed

We've been exposed

Programming
83.9K views 4 years ago