Home > SOA News > ECMAScript 5 takes JavaScript to a new level
SOA News:
EMAIL THIS

ECMAScript 5 takes JavaScript to a new level

By Jack Vaughan
15 Sep 2009 | SearchSOA.com

News on SOA, EAI, Web services
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google

JavaScript was once on the fringes of development. As it has grown to power thousands of new Web applications, it has moved to center stage. Still, changes to a standard version that came to be known as ECMAScript have been slow in coming.

The more popular something is, the less room you have as a standard maker to fiddle with it.
Douglas Crockford
JavaScript Architect, Yahoo!
Much used on the presentation tier these days, JavaScript bears little resemblance to its ostensible name-sake, Java. The scripting language was originated at Netscape. Then, a Microsoft version known as Jscript gained use. Eventually, both dialects came to adhere to the ECMAScript standard.

ECMAScript 5 is expected to be ratified later this year. It has been a long journey: The last ratified version of the standard was ECMA 3, and that was approved in 1999. Adding to the basic JavaScript language proved to be a highly charged task, as various groups and vendors fought for various features. Considerable attention was given to means of updating the language with, for example, object-oriented features.

In the face of discourse, ECMA 4 was abandoned. Now, the ECMAScript 5 working group seems prepared to put forward a less ambitious set of new capabilities as standard. In many cases, these new capabilities are not really new; they are well-worn Ajax design patterns that both presentation-tier developers and browser makers alike have come to support in the last 10 years.

Why was ECMA standards' progress slow and what caused recent momentum for ECMAScript 5? In fact, there was a move by some to find something less robust that could be agreed to.

"There were various proposals – a lot of starts and stops," said Allen Wirfs-Brock, ECMAScript Language Architect, Microsoft, who took part in a panel discussing ECMA 5 at The Ajax Experience conference this week in Boston, Mass.

"We made progress in the last two years because the players in the browser community worked with each other to define common achievable goals," said Wirfs-Brock, who serves as representative for Microsoft on the ECMA TC-39 study group.

Among the additions ECMA 5 brings to standard JavaScript are new standard library enhancements, an enhanced object model, a reflection API, a 'strict' mode of use, and native JavaScript Object Notation (JSON) support.

In seeking agreed-to enhancements, JavaScript's ease of use has been a double-edged sword. "It is widely popular. It is also the world's least popular language," chides Doug Crockford, architect at Yahoo, and creator of JSON.

This has made it difficult to formally update, suggests Crockford.

"We have been waiting 10 years for this [update]. The more popular something is, the less room you have as a standard maker to fiddle with it," he said, speaking as well at The Ajax Experience conference ECMA 5 panel.

Most agree that backward compatibility is essential in such a widely deployed technology. Key goals for ECMAScript 5, said Crockford, were to ensure "users would use it" and that "it did not break the Web."

Wirfs-Brock and Crockford indicated that the ECMA 5 community was working on conformance tests to help developers looking to work to the new standard, which goes up for vote within the ECMA standards process in December.

As in the past, JavaScript has some hairy edges where innovation – and a few unwelcome browser crashes – can occur. Over the years, JavaScript developers largely spurred-on browser progress by working around or actually exploiting bugs.

"The way we got here was brilliant, but it's too wacky," said Crockford.

Advises Crockford: "If you stay in the fat middle there is a good chance it will run. Things will always be flaky and fragile at the edges. So stay in the middle."



Tags: Ajax and RIA (Rich Internet Applications)VIEW ALL TAGS

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
Ajax and RIA (Rich Internet Applications)
Ajax and RIA trends
Ajax tools and products
Ajax Tutorial
News and insight from The Ajax Experience 2009
Doloto tool said to speed large-scale Ajax applications
Google Chrome Web browser: Is it an OS in waiting?
Kapow bows data-driven server for the enterprise
Enterprise mashup patterns act as API enablers
JViews enhances Eclipse RIA support
Web Service Test Forum launched by vendors
Ajax and RIA (Rich Internet Applications) Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
Drupal  (SearchSOA.com)
evergreen  (SearchSOA.com)
Google Spreadsheets  (SearchSOA.com)
meta tag  (SearchSOA.com)
Prism  (SearchSOA.com)
Rich Internet Application (RIA)  (SearchSOA.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



SOA Web Services: Application Server, Portals, Java, Microsoft .NET
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2001 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts