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

Product codes Memes

Posts tagged with Product codes

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

Bose QuietComfort Earbuds - True Wireless Bluetooth Earbuds with Active Noise Cancellation and Mic, USB-C Charging, IPX4 Rating, Up to 8.5 Hours of Playtime, Black

Bose QuietComfort Earbuds - True Wireless Bluetooth Earbuds with Active Noise Cancellation and Mic, USB-C Charging, IPX4 Rating, Up to 8.5 Hours of Playtime, Black

Affiliate
$129.00
NordVPN

NordVPN

Sponsored
VPN
Hetzner FTW: Crying All The Way To The Bank

Hetzner FTW: Crying All The Way To The Bank

Linux
436.9K views 1 year ago