Logo
COBOL: Powering your bank since before you were born.
  • 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

Default behavior Memes

Posts tagged with Default behavior

When Default Sort() Gets Awkward

Javascript Programming Debugging Frontend Algorithms
1 year ago 407.0K views 1 shares
When Default Sort() Gets Awkward
Ah, JavaScript's default sorting—where even emoji faces aren't safe from algorithmic bias. The code innocently calls sort() on an array of diverse face emojis, but without a compare function, JS sorts by Unicode values. Somehow the browser decided to arrange them by skin tone from lightest to darkest. Not exactly what the developer intended, but a perfect example of why you should always specify your sorting criteria. Remember kids: computers don't understand social context—they just follow instructions, however problematic the results may be.

Today's picks

The Glorious Days Of Past When You Got Roasted For Shitty Code

The Glorious Days Of Past When You Got Roasted For Shitty Code

Programming
129.8M views 1 day ago
Weller 70 Watt Digital Soldering Station | WE1010NA

Weller 70 Watt Digital Soldering Station | WE1010NA

Affiliate
$115.00
NordVPN

NordVPN

Sponsored
VPN