Logo
Never let a hardware engineer near your code.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • Csharp Csharp
  • 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
10 months ago 297.8K 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 Ultra Bluetooth Headphones, Wireless Headphones with Spatial Audio, Over Ear Noise Cancelling with Mic, Up to 24 Hours of Playtime, Deep Plum - Limited Edition Color

Bose QuietComfort Ultra Bluetooth Headphones, Wireless Headphones with Spatial Audio, Over Ear Noise Cancelling with Mic, Up to 24 Hours of Playtime, Deep Plum - Limited Edition Color

Affiliate
$399.00
Which DB Powers Your Stack

Which DB Powers Your Stack

Databases
576.0K views 7 months ago
I Just Want To Find The Img Src

I Just Want To Find The Img Src

Frontend
282.4K views 11 months ago