JavaScript upgrade to feature modularization

ECMAScript 6, which will also provide developers with more convenience and security, is anticipated for release in 2013

By , InfoWorld |  Software, JavaScript

The next major upgrade to the JavaScript platform, tentatively named ECMAScript 6, is set to feature modularization along with other improvements aimed at providing developers with more convenience and security.

Detailed this week in a presentation at the HTML5 Dev Conf event in San Francisco, the ECMAScript upgrade is being eyed for a 2013 release, said presenter David Herman, a senior researcher at Mozilla Research who has participated in the development of the specification at ECMA International. Focusing on JavaScript at an HTML5 technical conference makes perfect sense,  Herman explained. "[The two] are pretty much impossible to separate. HTML5 is really about the new APIs and capabilities of the Web platform and JavaScript is the language of the Web platform, so you can't use HTML5 without JavaScript and JavaScript is useless without the Web APIs, so the two need each other."

[ InfoWorld columnist recently pondered JavaScript in "The Great JavaScript debate: Improve it or kill it?" ]

Modularization enables reuse of JavaScript code so developers can share what they have written for reuse in other applications. "I think it's safe to say that the module system is the most important feature in the next version of JavaScript," Herman said. "Modules make it possible for people to share code."

The roadmap for JavaScript improvements is "pretty exciting," said developer Ishika Paul, senior software engineer at ShareThis.com. Paul lauded improvements such as modularization, and she links JavaScript's evolution to HTML5 and the new generation of the Web.

Also eyed for version 6 is binary data support, which enables activities such as reading a binary file or binary network protocol. "You could do things like read the contents of a PDF file" without being forced to represent items as strings, said Herman. Binary data capabilities are useful in data-intensive applications and can provide memory and possibly time savings, he added.

Private key capabilities in the ECMAScript upgrade can enhance security for developers, who will be able to hide information to prevent malicious or unintentional intrusion into parts of a program, said Herman. "It's a basic engineering construct that you see in most programming languages, and JavaScript really doesn't have much for doing that."  


Originally published on InfoWorld |  Click here to read the original story.
Join us:
Facebook

Twitter

Pinterest

Tumblr

LinkedIn

Google+

Answers - Powered by ITworld

ITworld Answers helps you solve problems and share expertise. Ask a question or take a crack at answering the new questions below.

Join us:
Facebook

Twitter

Pinterest

Tumblr

LinkedIn

Google+

Ask a Question