4 points

Honestly this being javascript I expected the answer to be

[4, 1, 100000, 30, 21]

(sorted alphabetically by name)

permalink
report
reply
1 point

As many people have pointed out already, this happens because JavaScript was rushed. But why do we still use a language whose foundation was built in only ten days(!) for scripting on webpages we build today? Why hasn’t there been a push for web browsers to support other scripting languages (other than maybe Dart)?

permalink
report
reply
2 points

There has never been a push because JavaScript works well enough.

Many of its mistakes have been rectified in later specifications.

permalink
report
parent
reply
1 point

sort -n

permalink
report
reply
21 points

JavaScript was made in 2 days through a drunken stupor, and it shows.

permalink
report
reply

It’s sad to have the rushed ramblings of a bigot become the fundamental block of the modern world wide web. Why couldn’t it be at least made by a more competent bigot like Carmack?

permalink
report
parent
reply
26 points

Because everyone means “alphabetize” when sorting numbers.

permalink
report
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 7K

    Monthly active users

  • 950

    Posts

  • 35K

    Comments