Logo
sudo make me a sandwich.
  • 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

Cooking-with-code Memes

Posts tagged with Cooking-with-code

Mamma Mia

Javascript Programming Algorithms
7 months ago 399.7K 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

Lenwen 24 Pcs Rubber Ducks Motivational Mini Party Favors, 1.89 Inch

Lenwen 24 Pcs Rubber Ducks Motivational Mini Party Favors, 1.89 Inch

Affiliate
$14.99
NordVPN

NordVPN

Sponsored
VPN
dependency only a programmer would understand

dependency only a programmer would understand

Linux
94.6K views 2 years ago