Logo
Perl: Write-only programming language.
  • 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

Pre-increment Memes

Posts tagged with Pre-increment

When You Post Increment Too Early

Programming Java Javascript Debugging Csharp
9 months ago 416.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

Programmer Glitch Rubber Duck Debugging Coding T-Shirt

Programmer Glitch Rubber Duck Debugging Coding T-Shirt

Affiliate
$19.99
Kids Vs Adults

Kids Vs Adults

Programming
329.5K views 6 months ago
What language am I using?

What language am I using?

Programming
86.2K views 3 years ago