JavaScript is not just scripting _javascript tips

Source: Internet
Author: User
Tags inheritance
In this technical forum, for everyone to write a I think of JS. HoHo

JavaScript seems to have always been interpreted as a scripting language, and program developers tend to look at it. Think of a script is not too much difficulty, it seems to do not understand the program of people specifically designed things, not worthy of real development to research and application.

From LiveScript to JavaScript, in a lot of time JS is just as a script in application. More developers can only use the front-end form validation, as well as web effects such as the application of floating, moving, pull-down menus, and so on, such as the client's time, resolution, and some events in the current window. So JavaScript became a web-effects language, designed to add a variety of cool effects to the page. JS seems to do only a few flashy interface effects, and even users can be shielded at any time, some browser toolbar automatically to mask the JavaScript ...

The programmer's disregard for JavaScript directly led to the neglect of JavaScript, while a large number of Internet effects applications accelerated the use of JS as a script. And until Jesse James Garrett the JavaScript XMLhttp Dom together to formally Ajax, JavaScript was suddenly in hot demand. With the large number of AJAX applications of large companies such as Google, Yahoo, and Microsoft, JavaScript has become increasingly concerned with Ajax.

Ajax is a technical combination of new bottles of wine, or Ajax is not a technology, but a concept. But it is this concept that can bring innovation to the Internet, so that we have a strong interest, not only because of the technology portfolio itself, but also the development trend of the Internet application technology model. The development trend of RIA needs new technology and method to match, Ajax at the present stage just satisfies the partial development request of the rich Internet application, and the reuse and localization JavaScript will be a better choice to realize Ria. The real core of Ajax (or currently the best rich Internet technology application) should be JavaScript, where the current trend is to refactor Web pages with JavaScript as a programming language, and to format data in JavaScript. XMLHTTP is a bridge and protocol for transmitting data, similar to the original get and post, while XMLHTTP serves JavaScript well.

In fact, JavaScript is like the most misunderstood language in the world (http://www.crockford.com/javascript/ The JavaScript described in javascript.html is one of the most populous programming languages in the world, except that the suffix is-script, and other calculations, process controls, arrays, functions are readily available, and Java, C, and so on.

Of course, programmers say, JavaScript cannot manipulate text (it is not safe to operate locally), cannot generate images, have no object-oriented, no classes, no inheritance, no debug, and cannot transmit data over the network. So, JavaScript is not a real programming language. So JavaScript is ignored as a script that is used only in page design. But when you see JSON-oriented JS applications, JS sets, 3D graphics, prototype classes and inheritance, plus XMLHTTP asynchronously passing network data, can you say javascirpt is just a simple script?

A few years ago, the SEER pointed out that JavaScript is the world's most misunderstood language, fortunately, today we have recognized the importance of JS, will not have been misunderstood.

See things like
http://www.netvibes.com/
http://developer.yahoo.com/yui/
http://www.backbase.com/
http://www.meebo.com/
http://www.miniajax.com/
http://www.protopage.com/

http://www.google.com/
http://www.a9.com/
http://www.live.com/
http://www.snap.com/
http//www.ask.com/
http://dojotoolkit.org/
http://www.ask.com/

In these applications, JavaScript is not just being used as a scripting language. JavaScript has an object-oriented concept, and can also inherit classes and throw exceptions. Because of that, that's why the AJAX framework is emerging and so hot. Programmers have become aware of the importance of JavaScript and the changes that have been made to web development after a new understanding of it, and that JavaScript is more than just a simple script for both the front-end and the backend developers-----just as previously thought.

In a project, especially a Web development project, JavaScript is almost an essential language, it does not need a compiler or a dedicated parser. As long as there is a browser on the client machine, as long as the open source JavaScript engine into the browser (almost all browsers are supported, all computers have a browser), whether it is a computer or mobile phone, JavaScript will be well supported.

Using JavaScript, at least, has the following advantages:
1, increase interactive dynamic application, rich interface application, improve user experience
2, save the background development cost, reduce the amount of background development, display html/xhtml and formatted data to JS processing
3, save network bandwidth, make browsing faster, reduce server pressure, XMLhttp reduce refresh data
4, embodies the RIA,B/S mode of the tool, through JS can achieve C/s mode of effect
5,web version of the software's best interface implementation, Flash,applet is also good, but the current Javascrip is the best
6, ...

browser compatibility or user blocking JS although it is a headache, but most browsers are following the ECMAScript1.5 standard, most users will not disable JS, because the use of the Internet off JS is almost a difficult thing.

While there are downsides to security, development, and maintenance costs, JavaScript will be a very important language for web development, or even Java, if you combine JavaScript nicely with the background. Now use Java, PHP to do the background of more and more Web sites, and then effectively combined with JavaScript, using JavaScript to T process and display pages, so that rich Internet applications, improve the user experience will be possible.

JavaScript was ignored by programmers so long after the pace of Ria finally ushered in the spring, anyway, software programs from the desktop to the network, to the browser will be the inevitable trend. Not to replace desktop applications, but to enrich the Internet applications there are too many ways to go.

In which, the desktop or the Internet after the use of the platform is very similar, can be used java,c,c# and so on. And in the foreground, in the Internet software application, JavaScript will be very good as the interface Development Program language role.

After all, JavaScript is no longer just a script, but a programming language that can be object-oriented. Of course, in order to really use the language of javasript, it is necessary to master a background language, and only so JavaScript is not just a script.

Here I said a lot of javascript favorable side, of course, JS still have such a problem, but I think the development of RIA is a trend, B/s mode is also a trend, JavaScript has also been moving forward (the new version is also being studied). I believe that with more and more interaction between users and Web sites and users, and as the network bandwidth becomes more and more rapid, RIA will have a good development, and JavaScript will play an increasingly important role in Ria WEB2.0.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.