Logo
There is no cloud, it's just someone else's computer.
  • 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 412.2K 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

Elgato 4K S – External Capture Card for PS5, Xbox Series X/S, Switch 2, PC, Mac, iPad | 4K60, 1440p120, or 1080p240 Passthrough and Capture, HDR10, VRR, USB-C, Near-Zero Latency

Elgato 4K S – External Capture Card for PS5, Xbox Series X/S, Switch 2, PC, Mac, iPad | 4K60, 1440p120, or 1080p240 Passthrough and Capture, HDR10, VRR, USB-C, Near-Zero Latency

Affiliate
$159.99
Even Sheldon Couldn't Make It Work As Code Is Good

Even Sheldon Couldn't Make It Work As Code Is Good

Debugging
332.8K views 10 months ago
Issues with the-algorithm.

Issues with the-algorithm.

Frontend
32.5K views 1 year ago