Some thoughts on JavaScript 2.0

Posted on:September 29 2009

I've been using JavaScript before quite a lot when creating websites and flash games and whatnot, but usually these were just simple, short scripts, and most of the time they even were so small that they were embedded directly into the HTML.

But recently, I had to dig a little bit deeper and came across the real beauty of JavaScript and realized some of its big features: Only doubles as primitive types, no ints, no floats, no bytes or similar. No classes, no real types, no OOP, but of course, you can build your own ugly class/inheritage system using prototypes and functions. If it is true, and the future really is web apps, then I pity the future software developers who have to write software based on this language.

But at least, there is light at the end of the tunnel, the next version of JavaScript, ECMAScript 4 / Harmony or better known as JavaScript 2.0, featuring classes and static typing. I hope this language will be finished and implemented soon, because this would mean the real fun with client side web apps can finally begin.


Lua is like that and nobody seems to mind; of course, the question is, why does anybody need another Lua. :)
Arseny Kapoulkin
2009-09-29 19:42:00

Yes, there's so few primitive types in Javascript. It's hard to do some simple things in this language. A pity you have to use it in web programming.
2009-09-30 01:02:00

@Arseny: roflmao, so true..

@post: totally agree with you,javascript seriously needs some reworks, it was one of the first languages i worked on and when i did some work on it again after going through c++ it seemed a total mess..
2009-09-30 02:55:00
2009-09-30 02:58:00

Once JavaScript 2.0 is released, most of the companies that do webdesign/programming won't use it. Reason? MS InternetExplorer will most likely not support it.

Based on my own experiences JavaScript is a nice language for writing little scripts that add some eye candy, drag'n'drop functionality and small custom widgets (preferably using a framework like jQuery/jQuery UI) to a site. If you try to write a bigger web application, scripts quickly turns into a single mess which is very hard to maintain, though.

To be honest, I think Flash and Silverlight (for those companies that go the "all we use is MS" way) are far better choices for web apps.
2009-09-30 08:26:00

@whatever: Exactly what I mean. But I think this will change once JavaScript 2 is implemented and supported by all major browsers.
2009-09-30 10:21:00

Add comment:

Posted by:

Enter the missing letter in: "Inter?ational"




Possible Codes

Feature Code
Link [url] [/url]
Bold [b]bold text[/b]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]