Home > SOA Tips > The Web Services Advisor > What to expect with the new JavaScript standardization (ECMAScript 5)
SOA Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

THE WEB SERVICES ADVISOR

What to expect with the new JavaScript standardization (ECMAScript 5)


Michael Pontacoloni
10.06.2009
Rating: --- (out of 5)


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


ECMAScript 5, the first JavaScript standardization since 1999, will be released later this year. Though not as thorough an overhaul as some programmers would have liked, ECMAScript 5 provides important updates that fix common pitfalls from ECMAScript 3 and allow developers to create more secure, robust programs.

Perhaps the most applauded new feature of ECMAScript 5 is native JSON support. In ECMAScript 3, methods to implement JSON data in programs, such as JSONP and json.js, caused security and scalability issues. Mozilla developer John Resig further analyzed the need for native JSON support on his blog. It appears his argument has been heeded. With native JSON support, common security and scalability issues are solved. And while most major browsers implemented native JSON support around the time of the first ECMAScript 5 drafts, the final standardization should eliminate any cross-browser disparities.

Several features were added to ECMAScript 5 to put programmers more on par with browser providers. First, a new property attribute control API has been introduced. The API has new semantics, which help to eliminate double negatives: "ReadOnly" becomes "writable," "DontEnum" becomes "Enumerable," and "DontDelete" becomes "Deletable." The API also allows the attributes of properties created by JavaScript code to now be controlled by the programmer.

In addition to the new API, accessor (getter/setter) properties were added, giving properties the ability to compute on assignment. The combination of accessor...


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



RELATED CONTENT
The Web Services Advisor
Restlet framework wrestles RESTful Web applications
3 tips for choosing whether to use EGL
Use SoaML to facilitate Model Driven Architecture
Enterprise mashup patterns act as API enablers
XQuery learns to write using XUF
Descriptive Languages for RESTful Services
Notable Python language update on view
Try XML-based Extensible Business Reporting Language (XBRL) for accounting reports
Whatever happened to ''X''?
The technology of Web Service Security

Web services -- Portals, presentation and clients
Enterprise Mashups Tutorial
Enterprise mashup patterns can make data integration easier (Podcast)
Podcast: Enterprise Mashups with John Crupi
Yahoo proxy fight looms
W3C publishes HTML 5 draft
New open source portal released
Web services mashup tool released
Web 2.0 rocks CES
Collaboration overload hurting productivity
IBM adds Web services to alphaWorks

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


properties and a new API allows JavaScript programmers to better emulate the DOM API. Google researcher and ECMAScript committee member Mark S. Miller provided details on this feature and others in a recent Google-hosted presentation on ECMAScript 5.

Other features help make JavaScript a more robust programming language. A "freeze" function was added to prevent the properties within an object from being changed, effectively creating tamperproof objects. A "strict mode" was added to help programmers create more secure programs with fewer errors. In strict mode, certain risky actions, such as accessing a global object, are automatically denied, and assignments that once failed silently are thrown. Strict mode can be applied to an entire script or to individual functions within a script.

Additional new features in ECMAScript 5 include additional array manipulation functions and reflective creation and inspection of objects. While some viewers have expressed disappointmentin the limited changes made with the new standardization, the specification committee has stressed it is more concerned with fixing what was wrong with the previous edition rather than adding capabilities to JavaScript that could cause new problems.

Steps toward further improvement of JavaScript are well underway. The next standardization, known as ECMAScript Harmony, is already being prepared and will contain many new updates, including some originally included with the now-defunct ECMAScript 4 proposal.


Rate this Tip
To rate tips, you must be a member of SearchSOA.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



SOA Trends and Strategy - SOA Education, SOA Development, SOA Implementations
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