Posted by: Boris Popov | November 13, 2006

Did JavaScript need to be this confusing?

Just noticed this gem over at YUI Blog,

JavaScript is a prototypal language, but it has a new operator that tries to make it look sort of like a classical language. That tends to confuse programmers, leading to some problematic programming patterns.

[...]

There is a time to new, and a time to not.

Check out the rest for an interesting back-and-forth. By the way, this isn’t meant to diss the Yahoo! folks, they’re churning out some amazing libraries, patterns and hints given the constraints they need to work in and articles like this one are much appreciated. Its just that every time I dive in there, I find myself having to learn to swim every time, it really feels like its more convoluted than it needs to be.

Leave a response

Your response:

Categories