Logo
TCP: I got your packets, I promise.
  • 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.7K 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

Windows User And Linux User

Windows User And Linux User

Linux
121.1M views 17 days ago
Story as old as hype and slave labor

Story as old as hype and slave labor

Programming
109.6K views 4 years ago
ASUS TUF Gaming 27” 4K HDR Monitor (VG27UQ1A) – 160Hz, 1ms, Extreme Low Motion Blur Sync, NVIDIA G-SYNC Compatible, AMD FreeSync Premium, 95% DCI-P3, DisplayWidget, 3 yr Warranty

ASUS TUF Gaming 27” 4K HDR Monitor (VG27UQ1A) – 160Hz, 1ms, Extreme Low Motion Blur Sync, NVIDIA G-SYNC Compatible, AMD FreeSync Premium, 95% DCI-P3, DisplayWidget, 3 yr Warranty

Affiliate
$388.95