Logo
The best thing about a boolean is even if you're wrong, you're only off by a bit.
  • 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-to-int Memes

Posts tagged with String-to-int

String To Integer Conversion

php Programming Backend Webdev
2 months ago 64.0M views 0 shares
String To Integer Conversion
When someone discovers type casting exists but their brain refuses to accept it. Instead of using a simple intval() or (int) , this developer decided to manually map every possible string value to its integer equivalent. It's like reinventing the wheel, except the wheel is square and made of sadness. Best part? They're pulling from $_POST , so they're probably expecting user input. Can't wait to see what happens when someone enters "90" or literally any value not in their hardcoded if-statement pyramid. Spoiler: $transamount stays undefined and the app explodes. This is what happens when you learn programming from a 2003 PHP tutorial and never question anything.

Today's picks

Funny Developer Quote White Coffee Mugs, Gifts from Friends for Developer on Christmas Unique Presents, World's Greatest Developer Mug, White Ceramic, Microwave and Dishwasher Safe

Funny Developer Quote White Coffee Mugs, Gifts from Friends for Developer on Christmas Unique Presents, World's Greatest Developer Mug, White Ceramic, Microwave and Dishwasher Safe

Affiliate
$16.95
Stack Over Flow Partners With Open Ai

Stack Over Flow Partners With Open Ai

StackOverflow
88.4K views 2 years ago
Using the Command Line

Using the Command Line

Programming
164.4K views 4 years ago