Javascript is a botch, Part 1

This will be the first in a series of rants about Javascript. I haven’t used Javascript much; only as much as is necessary to set up some AJAX activity in some of my corporate software. I’ve been studying it off and on via Javascript: The Definitive Reference from O’Reilly. But from what I can see, this language looks like the ultimate botch. So with that as my premise, let’s dig into some reasons why I think that.

  1. Anonymous functions as parameters for other functions.
  2. All numbers in Javascript are represented internally as floating point.
  3. x++ is not the same as x += 1
  4. Javascript inserts semicolons when it thinks you omitted them
  5. Three ways to define functions.

Stay tuned for more later….