Logo
Why do programmers prefer dark mode? Because light attracts bugs!
  • 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

String formatting Memes

Posts tagged with String formatting

Printf Vs Sprint F

Programming C++
2 months ago 218.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 201.7K 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

Genuinely Can't With These People

Genuinely Can't With These People

Cloud
2.2M views 6 days ago
SunFounder Elite Explorer Kit with Original Arduino Uno R4 WiFi, RoHS Compliant, Bluetooth IoT ESP32 IIC LCD1602 OLED, Super Starter Kit, Online Tutorials & Video Courses for Beginners & Engineers

SunFounder Elite Explorer Kit with Original Arduino Uno R4 WiFi, RoHS Compliant, Bluetooth IoT ESP32 IIC LCD1602 OLED, Super Starter Kit, Online Tutorials & Video Courses for Beginners & Engineers

Affiliate
$95.99
I Am Not Worried About AI

I Am Not Worried About AI

Programming
374.5K views 1 year ago