Code Doesn't Lie, But It Might Miss The Point

Code Doesn't Lie, But It Might Miss The Point
python-memes, java-memes, programming-languages-memes, string-comparison-memes, lexicographical-order-memes | ProgrammerHumor.io

When the age-old Python vs Java debate gets settled by... string comparison. Someone asked for proof that Python is better than Java, and they got it - technically. In the Python interpreter, 'python' > 'java' evaluates to True because in lexicographical comparison 'p' comes after 'j' in the alphabet.

Congratulations, the greatest programming language war has been resolved with literal string comparison. Next up: solving tabs vs spaces by measuring their physical width with a ruler.

More Like This