Logo
HTTP 303: See Other (The original redirect).
  • 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

Pre-increment Memes

Posts tagged with Pre-increment

When You Post Increment Too Early

Programming Java Javascript Debugging Csharp
4 months ago 303.8K views 0 shares
When You Post Increment Too Early
Someone updated that drowning counter with count++ instead of ++count and now zero people have drowned wearing lifejackets. Technically correct is the best kind of correct, right? The sign maker probably tested it once, saw it worked, shipped it to production, and went home early. Meanwhile, the lifejacket stat is sitting there at zero like "not my problem." Fun fact: The difference between i++ and ++i has caused more bugs than anyone wants to admit. Post-increment returns the value THEN increments it, while pre-increment does it the other way around. It's the programming equivalent of putting your shoes on before your socks—technically you did both things, just in the wrong order.

Today's picks

Genuinely Can't With These People

Genuinely Can't With These People

Cloud
2.2M views 2 days ago
More Like The "If" And "When" But Never "Is" Guy

More Like The "If" And "When" But Never "Is" Guy

Agile
389.5K views 2 months ago
The World's Most Helpful Security Breach

The World's Most Helpful Security Breach

Security
444.9K views 8 months ago