JavaScript revision aims for browser cohesion
April 16, 2009 —
(Page 1 of 2)
Ten years after the last major revision of the language, JavaScript is ready for an update. ECMA International, on April 9, released the final draft of its specification for ECMAScript Fifth Edition—more commonly known as JavaScript—with important changes around JSON support.
Fifth Edition now includes support for the JSON object encoding format. Additionally, the specification includes a strict mode that offers better error checking and improves the overall security of JavaScript applications.
Further confusing the nomenclature is the fact that ECMAScript, Fifth Edition, was developed under the enumeration of version 3.1. Brendan Eich, CTO of the Mozilla Corporation and the creator of JavaScript, was involved in the ECMAScript 3.1 specification process.
Much of the work done on this specification involved bringing individual browser functionalities into a more open standard. Eich said that the biggest change for developers will be the common availability of getters and setters, which have been in Firefox for some time and have trickled into other browsers over time.
Eich also highlighted what he's calling a reflective meta-programming API. “What it means is you can make objects that look more like host objects, the magic objects you can set in the Document Object Model,” said Eich.
Objects are now more secure too, added JavaScript's creator. “JSON has dethroned XML for pure data interchange,” said Eich. “But it has had to be implemented as a JavaScript library. You have to be careful how you use it. With this new codec as part of the standard, they don't have to worry about downloading the libraries. There are other improvements to the integrity of JSON, so when you make arrays and objects from decoding this string, you get arrays and objects, not some attack encoded inside it.”
Eich said that the Fifth Edition adds a strict mode, similar to sort that rose to prominence in the Perl community. He said strict mode is helpful when “I want to have more error checking, or have some sanity checks done. When you assign to a read-only property, it shouldn't just fail. With strict mode you get an exception. The hope is a lot of people will just turn it on. People got used to seeing 'use strict' at the top of their Perl code. This will help us evolve the language so that someday, many years down the road, we can make the general language stricter.”
Related Search Term(s): ECMA, JavaScript
Share this link: http://sdt.bz/33422
Most Read Latest News Blog Resources
Zeichick’s Take: Radio moves from analog waveforms to digital packets
Streaming radio highlights the need for streaming applications to be designed to take up as little bandwidth as possible
|
|
Taking enterprise architecture to the business side
Startup Corso is bringing out a cloud-based planning platform that ties into business plans
|
|
Appcelerator Acquires Cocoafish to Add Instant Mobile Cloud Capabilities to its Industry Leading Titanium Platform
Appcelerator Offers Messaging, Social, Location and Storage Mobile Cloud Services to All Mobile App Publishers
|
|
ComponentOne Releases a Collection of 40+ UI Widgets Powered by HTML5 and jQuery
ComponentOne has announced the 2012 release of Wijmo: a kit of UI widgets for HTML5 and jQuery development
|
Taking enterprise architecture to the business side
Startup Corso is bringing out a cloud-based planning platform that ties into business plans
|
|
Top five apps to manage your workload
Web applications offer new ways to track your “to-do” lists
|
|
Not so fast when it comes to testing in the cloud
Developers face outsourcing, virtual lab management and mobile devices as obstacles
|
|
Xceed releases UX-focused suite for Microsoft’s WPF
"Blendables" helps match user experiences to developer visions
|
Are you at risk for burnout?
Burnout is a severe problem and it can strike at any time. Here's how to tell if you are nearing the edge.
|
|
Agility, mom, and apple pie
If we're to evaluate the state-of-the-art in software development, we should start with the values espoused in the Agile Manifesto.
|
|
RIM woos developers with free tablet
How do you get more apps ported to the BlackBerry PlayBook? By giving every developer a free tablet, of course!
|
|
GitHire: Use Headhunters to Find Your Perfect Programmer
Are you a hiring manager tired of scouring the job boards? Check out this new service that will find 5 people interested in your jobs.
|
The Hidden Costs of Software Licensing
Moving beyond paper-based software licensing to more flexible, software-based licensing is a business decision. There is a growing trend tow...
|
|
Case Study: You May Need a Development Mechanic
As a contractor for a major financial player in Germany, SOBEGE, a German-based consultancy specializing in embedded IT and web services, wa...
|
|
Ensuring Software Quality at a Major International Bank
One of the world’s leading international banks has adopted AgitarOne technology for delivering generated unit tests for their Java software...
|
|
Load Testing Adobe Flex Applications
Adobe Flex applications may be different from applications you’ve worked with before. For classic HTML web applications, the server does all...
|