Learning a programming language doesn't require learning its historyunless you're a language like JavaScript, whose history is reflected in web pages today. JavaScript originated with Netscape, back when it was first developing its LiveConnect server-side development. The company wanted a scripting language that could interface with the server-side components and created one called "LiveScript." Later, after an initial partnership with Sun, owner of the Java programming language, the Netscape engineers renamed LiveScript to JavaScript, even though there was and is no connection between either programming language. Well-known JavaScript guru Steven Champeon wrote:
Not to be out-engineered, Microsoft countered Netscape's effort with the release of Internet Explorer and its own scripting languageVBScriptderived from the company's popular Visual Basic. Later, it also released its own version of a JavaScript-like language: JScript. The competition between browsers and languages impacted the early adoption of JavaScript within many companies, especially as the difficult challenge of maintaining cross-browser compatible pages increasednot to mention confusion about the name. In an effort to cut through the compatibility issues, Netscape submitted the JavaScript specification to the European Computer Manufacturer's Association (ECMA) International in 1996, to reissue it as a standardized work. Engineers from Sun, Microsoft, Netscape, and other companies holding a stake in the language were invited to participate, and the result was the release of the first ECMAScript specificationECMA-262in June 1997. Since that time, most companies that support a version of JavaScript (or JScript or ECMAScript) have agreed to, at a minimum, support ECMA-262.
The second version of ECMA-262 was strictly a maintenance release. The third, and current, version was released in December 1999. However, this wouldn't be JavaScript if the confusion ended with the passing of ECMA-262. Scattered about the Web is discussion of a new version of ECMAScript, designated ECMA-357. However, this isn't a new edition or version of ECMAScript; it's an extension known as E4X. The purpose of the extension is to add native XML capability to ECMA-262. ECMA-357 was published in 2004, and at this time, JavaScript 1.6 has partially implemented E4X. What's important to remember from all of this is that many of these older versions of scripting langauges are still in use, even today. It's not uncommon to find old JScript or the earliest versions of JavaScript. To clarify all the versions of scripting languages and how they relate to one another, Table 1-1 provides an approximate correspondence between JavaScript, JScript, and ECMAScript version, and what version of each is supported by today's most popular web browsers.
|
0 komentar:
Posting Komentar