Logo
CSS is awesome { overflow: hidden; }
  • 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

Default behavior Memes

Posts tagged with Default behavior

When Default Sort() Gets Awkward

Javascript Programming Debugging Frontend Algorithms
1 year ago 337.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

Cherry KC 200 MX Mechanical Office Keyboard with New MX2A switches. Modern Design with Metal Plate Frame. (Bronze W/MX2A Brown Switch)

Cherry KC 200 MX Mechanical Office Keyboard with New MX2A switches. Modern Design with Metal Plate Frame. (Bronze W/MX2A Brown Switch)

Affiliate
$86.66
happened today at my work lol

happened today at my work lol

Programming
60.7K views 4 years ago
Robot uses artificial intelligence to cook burgers

Robot uses artificial intelligence to cook burgers

Programming
62.9K views 1 year ago