Logo
Edison used 'bug' before computers existed.
  • 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

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 hours ago 56.0K views 0 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?

Spotlight

GearScouts.com

Stop scrolling, start exploring! Find the gear that'll get you off the couch and into the wild. Compare power stations for off-grid adventures, flashlights for midnight hikes, and essentials that make the outdoors your playground. Get Outside →

Acer USB C Hub with 4K HDMI, 9-in-1 USB C to Et...

Acer USB C Hub with 4K HDMI, 9-in-1 USB C to Et...
Ad Buy = You get something neat + we can afford to upgrade our CI/CD pipeline to run in under 2 hours. ⏰