xiphias: (Default)
[personal profile] xiphias
I mean, it's not DIFFICULT to use or anything, but it's so awkward. It's . . . inelegant. Things that should be analogous use different syntax, for no apparent reason. The equality operator is "===".

It's like it was designed by independent people at different times who weren't in consultation with each other, and then bodged together at the last minute. I swear, the thing looks like it was designed by, I dunno, MBAs or something. Or maybe planaria. Or maybe even flatworms with MBAs.

(no subject)

Date: 2012-02-08 09:15 am (UTC)
From: [identity profile] zachkessin.livejournal.com
Yes, that book is very much worth reading.

A large part of Javascript's problems result from the fact that it was designed to do very small things and then evolved into larger things later. And more importantly it was pushed out the door of Mozilla way too soon. Most languages have a period of a few years where the rough edges get filled off, javascript didn't.

As for the equality operator, there are two == and === the problem is that == does some very strange type conversions and can lead to all sorts of strange results in some corner cases.

(no subject)

Date: 2012-02-08 09:17 am (UTC)
From: [identity profile] zachkessin.livejournal.com
The truth is if you want to just have a better syntax check out CoffeeScript, its JavaScript with a better syntax.

November 2018

S M T W T F S
     123
45678910
11121314151617
18192021222324
252627282930 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags