Logo
Keep calm and git commit.
  • 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

Object lookup Memes

Posts tagged with Object lookup

No Hash Map, No Problem (Actually, Big Problem)

Javascript Programming Android
1 year ago 428.0K views 1 shares
No Hash Map, No Problem (Actually, Big Problem)
Whoever wrote this switch statement clearly never heard of a HashMap. They're out here mapping Samsung Galaxy Buds models to their product codes like it's 1999. Instead of this monstrosity with 10+ case statements, they could've just done: const productCodes = {"Galaxy Buds FE": "R400XX", ...} and then return productCodes[var] || "default"; But hey, who needs elegant solutions when you can write code that scrolls for days? Bonus points for the completely random product codes that follow no logical pattern whatsoever. Samsung's engineers are probably the same people who name their variables a1, a2, a3...

Today's picks

DROP + The Lord of The Rings™ Black Speech TKL Mechanical Keyboard - MT3 Profile Keycaps with Accent Keys - Holy Panda X Tactile Switches - PBT Dye-Sub Keycaps - LED Backlight - Black

DROP + The Lord of The Rings™ Black Speech TKL Mechanical Keyboard - MT3 Profile Keycaps with Accent Keys - Holy Panda X Tactile Switches - PBT Dye-Sub Keycaps - LED Backlight - Black

Affiliate
$139.00
Truly How

Truly How

Agile
75.5M views 2 months ago
How Would You Like To Pay Your Na N Pounds?

How Would You Like To Pay Your Na N Pounds?

Javascript
2.7M views 4 months ago