Logo
If debugging removes bugs, programming adds them.
  • 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

Lexicographical Memes

Posts tagged with Lexicographical

AI Bubblesort: Technically Correct, Practically Useless

AI Algorithms Programming Debugging
11 months ago 476.7K views 0 shares
AI Bubblesort: Technically Correct, Practically Useless
Behold, the elevator panel that perfectly captures what happens when you ask AI to sort a list! The floors are in complete lexicographical order instead of numerical order because, well, that's technically sorting. Just like when you ask ChatGPT to organize your music and it puts "10 Things I Hate About You" soundtrack before "2Pac" because string comparison doesn't understand numbers. The AI followed instructions perfectly... and completely missed the point. Somewhere, a programmer is screaming about how they should have used parseInt() or a natural sort algorithm instead of letting the intern train the model on Stack Overflow answers.

Why Brendan Eich Created JavaScript's Quirky Comparisons

Javascript Programming Debugging
1 year ago 372.6K views 0 shares
Why Brendan Eich Created JavaScript's Quirky Comparisons
JavaScript's type coercion strikes again! In JS, when comparing strings with > , it performs lexicographical comparison - meaning "Dog" > "Cat" evaluates to true because 'D' comes after 'C' in the alphabet. The grumpy kitten represents Brendan Eich (JavaScript's creator) facepalming at his own language quirks. He unleashed these string comparison shenanigans on the world and now even cats are judging him for it. The feline uprising begins with alphabetical order!

Today's picks

Lexar E300 M.2 NVMe SSD Enclosure, USB-C 10Gbps External SSD Reader/Adapter

Lexar E300 M.2 NVMe SSD Enclosure, USB-C 10Gbps External SSD Reader/Adapter

Affiliate
$13.99
No need for testing when you have KIM

No need for testing when you have KIM

Programming
119.3K views 4 years ago
We Really Lost Diamonds

We Really Lost Diamonds

Windows
1.6M views 3 months ago