Laments that JavaScript is becoming more and more important.

Source: Internet
Author: User
Tags silver light
JavaScript is a scripting language, but it is also a language with powerful features. Jav

JavaScript is a scripting language, but it is also a language with powerful features.

JavaScript is related to Java, but only the similarity of basic keywords is retained, which is far less closely related to C # and Java.

C #3.0 and later versions have become increasingly different from Java, and more dynamic elements have been added. JavaScript has been implemented more than a decade ago and has become the selling point of the new C # version. For example, the extension method C # is very clever, but it is awkward than Javascript. We can extend the format method of the String type without writing it in a static class.

String.prototype.format = function() { this.replace(/\{(\d+)\}/g, function(m, i){ return args[i]; }) }

JavaScript has delegate, event, exception handling, and rich object models. Although it cannot be inherited, objects can be infinitely expanded, and there is no meaning for inheritance.

The competition in the browser market is becoming increasingly fierce. For IE9, FireFox 4, and Chrome X, the competition focuses on speed. The core of speed is the speed of Script execution.

The source code of a bunch of scripts can be interpreted and executed on other machines and cannot be left open-source. At the beginning, there were very few scripts on the website. However, as the customer experience requirement improved, the script became more and more complex. Soon everyone found that even though the Code was published on the Internet, there was nothing. Currently, JavaScript compression technology is popular, so no one can read it. As a result, the open-source code movement emerged, and JavaScript was the pioneer.

Since its launch, Microsoft has never been defeated by its competitors, but it has been defeated by JavaScript three times, recognizing its dominance in the Web Front-end. For the first time, Microsoft. net reluctantly abandoned its own child-VBScript, fully supporting JS; the second was the rush to release Ajax Extensions series components; the third VS2008 integrated JQuery and code prompts as a sign, Asp. net has a tendency to integrate rich clients.

However, over the past 15 years, JavaScript has not yet been widely recognized as a development environment. I really don't know how to write the 100,000 lines of code in GMail. They will not publish useful tools. They can only continue to count on Microsoft. But it has been around for more than a decade.

Some people hate JavaScript and have been in contact with many people who have done Web development for more than one hundred lines of JS Code for two years.

For beginners in programming, JavaScript is the best choice for beginners. It has zero threshold, strong practicability, and difficulty in learning and learning. It is much better than other languages and can mobilize the interest of potential beginners, it also makes it possible for those who are not interested to know how to leave, so as not to fill the market in the future. After I write a program, I start a programming class and teach JavaScript first. The goal is to surpass Qingdao University.

"I can achieve this too." I often think this way when I see a complicated JS effect on the Internet. It is a headache to write it. Due to the complexity of DOM operations, browser compatibility greatly reduces the fun of writing JavaScript, so JavaScript Framework has sprung up.

In just two years, JQuery has been out of the crowd. The first time I heard about it, I thought the name was very positive. A well-known name is the first step to success.

It is a pity that JavaScript was regarded as a Java younger brother, and it was difficult to turn over from now on. Despite the continuous enhancement of functions and the emergence of many frameworks, it cannot be changed. During the interview, people asked you what language is the best. Do you dare to say JavaScript?

However, in the future, if the browser will replace or partially replace the operating system, the situation will be completely different. When the browser is sublimated, it is the beginning of JavaScript. At that time, Java may have been in the museum for a long time, and JavaScript is hiding in an unknown corner of the browser, laughing at C #, which is more and more like itself #.

There is no unified idea in front-end development. The first is the framework selection. Now it seems that, except for small websites with only a few pages, there is no doubt that the mature frameworks such as JQuery should be used as the basis for self-writing extensions. Many project owners don't want to use JQuery. Maybe the website does not support or set up GZip. What's the age now? In addition, although it is easy to master, after all, if you want to learn, you will not play when talking about learning many Senior people.

JQuery also has a problem. All functions are in one file. In fact, they can be divided into several smaller files, just like namespaces. In addition, the new version is too fast, and the browser and even JS core want to embed it, it is still very far away.

JavaScript does not have a very good development platform. It is very convenient to teach new users to get started. If there are a lot of code, they will feel messy. The more uncomfortable you use, the more complex the effects are. In fact, JavaScript is completely done, and Flash is used. In the future, SilverLight will be taken away. The HTML5 standard is coming soon. I have predicted that it will largely replace Flash or even SilverLight. However, it seems that the development weakness of JavaScript will restrict the application of new HTML5 features and seriously affect the popularity of HTML5. In HTML5, there will be more things to do, but it should be more uncomfortable to write it. As a result, Flash and SilverLight will be more moist (it won't be worth it ), there are many fans of their respective languages, frameworks, ides, and Web Front-end development.

Unless JavaScript is changed by itself, it is very important that JavaScript can be interpreted, compiled, and executed, and the definition type can be dynamic and static. In this way, type inference, smart prompts, or Microsoft can be performed, open-source developers are also interested in developing IDE tailored to JavaScript. The study of language patterns and norms will inject new vigor into the JS language. However, this change is too revolutionary and not feasible. So many browsers, so many vendors, how are they consistent, who can coordinate. Unless there is a revolutionary event, as mentioned above, that is, the browser replaces the operating system and the desktop becomes a page, which is possible but too far away.

What's more, in the future, the desktop will become a page, not necessarily HTML. I think it is more likely that it is RIA. But Flash is not ambitious. Steve Jobs said Adobe's people are too reluctant to change and are not open-source. JavaFx is too tender, and Sun is swallowed up again. The future will not be a mother's child-suffering. SilverLight is also tender, born too hard, with a thief. Although Flash is still an absolute advantage, once the trend changes, the RIA application enters the desktop, only the silver light is full.

If Microsoft is strong in pushing back SilverLight, it is even more terrible because it has long been predicted this day.

Back to JavaScript, we can predict that it is ranked tenth in the programming language rankings, and its ecological environment will not change in the short term. JS execution speed is getting faster and faster, and development troubles remain.

Of course, if you are proficient in JavaScript, It is very admirable, and the salary should not be low. However, compared with the C/PHP/Java/C # language, writing only the front end is really not promising. Therefore, I have no motivation to move towards the threshold of proficiency, So I continue to accept the troubles and get used to them. I will record them before getting used to numbness, or I will not even think about them in the future.

This article is available at http://www.nowamagic.net/librarys/veda/detail/433.

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.