Logo
The best code is no code at all.
  • 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

Assignment vs comparison Memes

Posts tagged with Assignment vs comparison

The Single Equal Sign Of Doom

Programming Javascript Debugging Backend Security
11 months ago 481.7K views 0 shares
The Single Equal Sign Of Doom
That feeling when you realize your production server is granting admin access to literally everyone because you used = (assignment) instead of == (comparison) in your if statement. Fun fact: This single character mistake is why some senior devs wake up in cold sweats at 2AM. The code if (user = admin) doesn't check if user equals admin - it assigns admin to user, then evaluates to true because admin is truthy. Congrats, you just made everyone a superuser!

Today's picks

SUNMALL Replacement Keyboard Compatible with Lenovo IBM Thinkpad E15 2019 Gen 1 20RD 20RE, E15 2020 Gen 2, E15 2021 Gen 3 Thinkpad E15 2022 Gen 4, with Pointer and Backlight

SUNMALL Replacement Keyboard Compatible with Lenovo IBM Thinkpad E15 2019 Gen 1 20RD 20RE, E15 2020 Gen 2, E15 2021 Gen 3 Thinkpad E15 2022 Gen 4, with Pointer and Backlight

Affiliate
$23.99
Clock, But Its Order By Hour Desc

Clock, But Its Order By Hour Desc

Programming
99.0K views 11 months ago
Finally Something Worse Than Curl | Sh

Finally Something Worse Than Curl | Sh

AI
22.2M views 2 months ago