Logo
The first image on the web: A band photo.
  • 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

Sort Memes

Posts tagged with Sort

Mamma Mia

Javascript Programming Algorithms
3 months ago 274.5K views 1 shares
Mamma Mia
Someone's building lasagna with the same architectural philosophy they use for their codebase. Got your pasta layer, your meat sauce layer, your cheese layer, and then just... lasagna.sort() slapped right in the middle like it's a perfectly normal thing to do. Because nothing says "Italian cuisine" quite like randomly sorting your ingredients mid-assembly. What's it sorting by? Deliciousness? Molecular weight? The tears of Italian grandmothers? The function doesn't even have parameters, so it's probably just using the default comparison operator on bolognese chunks. Fun fact: JavaScript's Array.sort() converts elements to strings and sorts them lexicographically by default, which means [10, 2, 1] becomes [1, 10, 2]. So your lasagna layers are probably now arranged in alphabetical order. Buon appetito, I guess?

Today's picks

MechLands Feker Alice98 Ergonomic 98 Keys Custom Mechanical Keyboard, VIA Programmable, USB-C Wired Gaming Keyboard, Hot Swappable, 5 Layer Paddings, Control Knob, NKRO, RGB for Win/Mac (Black)

MechLands Feker Alice98 Ergonomic 98 Keys Custom Mechanical Keyboard, VIA Programmable, USB-C Wired Gaming Keyboard, Hot Swappable, 5 Layer Paddings, Control Knob, NKRO, RGB for Win/Mac (Black)

Affiliate
$94.99
What

What

Javascript
204.4K views 2 years ago
Genuinely Genuine Answer To Genuine Question

Genuinely Genuine Answer To Genuine Question

Algorithms
325.4K views 2 months ago