JavaScript's past Life

Source: Internet
Author: User

Yesterday's winter tour, the car chatting company's future product direction, HTML5 trend, and so on. Leader suddenly said "you js how so nb." Fragrans just past, do not know is praised if surprised, or conscious level too low. There seems to be a little surprise and a little pressure. To know, the elder brother has been to serve the identity of the agricultural lake, thought "to rely on JS bread where, but also to work ah."

However, leader no word, but I can't help thinking about it. Leader was born in NB's back-end yards, like most back-end engineers. Perhaps the front-end is not too cold, or JS pit Father's Pseudo Oo, the roundabout mechanism of the operation confused them. In the elder brother seems to master JS is not difficult, I was also a JS ignorant Java farmers, the same time, I do not know: This play how to achieve oo? This is everywhere, what does it represent? What exactly is a prototype chain? And so, with Java, C # that set of advanced complete oo morphology to ponder JS is really difficult to understand the acceptance. To this end, I hope that the identity of Java farmers, targeted, write a few blogs, perhaps a clumsy writing, but still expect to be helpful to the back-end classmates.

The above pull so much, nothing is to find a sense of writing, expect that the graduation thesis once, voluminous more than 100 words of the article have not written, now even more, coax sister will not, so that single so far. Nonsense, here's the point!

Presumably, students you have read the title of "JavaScript past Life ", not to say that writing points to help classmates blogs, how to make a history? I tell you: Learning to chase female that momentum to practice, today you want to JS "play" In the hand, you have to like chasing sister, first understand sister's history. Where does this sister come from? Where did you read the book? How many boyfriends and so on, so as to fully understand sister's various "characteristics." Of course, there is no need to play with the sister's meaning \ (^o^)/~.

Human progress has been advanced in a variety of needs. The advent of JavaScript is also a requirement. Before you say JavaScript, you have to talk about how the Internet was invented. In the 60 's, the old United States made a defense communication network, in order to win the war, to the 80 's, or the old United States brick home, but this time the protagonist is a good scientist and education brick home. In order to facilitate the rapid exchange of data and share for the convenience of scientific research institutions and schools around the world, they have a nationwide network linking these institutions. This time, the Internet was born. But also confined to high-brick use, their data exchange format is only high-brick meeting, patted the head on the tone of the various text format.

In the 90 's, the internet began to go out of research institutions, laboratories, began a commercial journey, that is, the common people also use. But this time, the problem came, the common people are not bricks, they can not meet the format of data interchange. Yes, the needs of the common people come! So major software companies, such as Netscape, Microsoft has launched a Hypertext Transfer Protocol (Http,hypertext Transfer Protocol) Data Interchange Format of NB Software! It is the browser we use every day today!

Ah! The browser is coming! This cow b software, will be able to correctly parse text, images transmitted over the Internet, to receive keyboard input, the meaning we want to express to the other party. But, you see! This NB software was stupid at the time, only to receive data, rendering data, can not do any validation of the input data. For example, you wanted to transfer 100 dollars to sister, but the hands of a few 0, the browser without prompting the data submitted to the server, of course, the server will have a check. But the internet was as slow as a green-leather train, and it was not easy to transfer this information to the destination (server) before the test, only to find that you can not transfer so much money. So the green car and like a snail, you can not transfer the information sent back to tell you may have entered the wrong amount of money! You know, the green leather car is so slow! This back and forth, you've had a few cups of coffee before you get the tip "I can't turn that much money"! The brick family is more unbearable! So, the demand comes again! Daniel was huddled together to drink coffee and discuss how to solve the problem. Around 1995, Netscape had a NB programmer, Brandon Ike, who had a livescript scripting language that was directly integrated into the Navigator2 browser. Yes, this LiveScript is sufficient to address the problems encountered earlier. But you see, its name is " livescript ", then it is not called JavaScript. So what's the "JavaScript" that's now called? It's going to have to be a sun company that used to be as great as the sun. At that time, the Sun company's Cow B had "once compiled, run everywhere" Java has been stir. Navigator's eldest brothers also know some marketing strategy, in order to give the upcoming Navigator2 increase chips, so find the door of sun. Ask if you can borrow a "Java" title. Sun is great enough, apart, take it! If you put it now, it would cost $ hundreds of trillion dollars (Sun's death, is it too generous?) )。 Thus, the original LiveScript became the current JavaScript. Shoes with you, see here should JavaScript and Java is what relationship? Don't think JavaScript and Java are likely to be the same boat!

Now you finally know how JavaScript is coming! Good! Very good! That's the problem too. At that time, the birth environment, the birth demand, doomed JavaScript's various abnormal characteristics. In the 199x years, Java is still a baby, the programming world is the C and C + + This kind of speech, although C + + this improved C and the contemporary Oo thinking on the edge. But the major masters, have been deeply poisoned by the C language. Brandon-Ike is not listed outside, this guy in the design of LiveScript, obviously by the C language influence. So you see JavaScript without namespace (called Pakeage in Java), no concept of class, no inheritance, rewrite, overloaded design features. That's what JavaScript object-oriented programming is all about, and it's all about using kinky tricks and beating around the bush. But we are all lucky, Javascript ES6 version of the object-oriented features have been further improved, will not be so awkward.

Yes, JavaScript came into being, but since birth, its status has been low, and it has been designed as a simple browser data validation role. Plainly dispensable, if you do not use JavaScript for client authentication, is to send back to the server verification, just because the network transmission, the use of poor experience. You can't live without it. The awkward position of JavaScript is doomed from the day of birth.

As the saying goes, "There is hope not worry no firewood burn", JavaScript supporting this dispensable identity mixed in the early 20th century. The internet has seen far-reaching Ajax technologies (asynchronous JavaScript and XML technology) and also saved JavaScript. To say thanks, JavaScript has to thank two great companies, one Microsoft and one Google. At the beginning of 20th century, WebService rise, you know, Websercie. The text format of the Transfer protocol is actually an XML. Microsoft has taken the lead inactivexobject "in the form of a xmlhttprequ in his own browser Est. A look at the name to know, this play was to implement on the browser with the service side of the WebService application communication. As a result, the Microsoft move is very successful, the major browser manufacturers follow up, imitate Microsoft (do not spray too much domestic internet plagiarism, have the ability to copy, no ability to buy only). So modern browsers have implemented xmlhttprequest , providing the implementation foundation for AJAX technology. So why, JavaScript thanks to Google? xmlhttprequest "was saved by JavaScript. , but Google is the real way to get JavaScript out of its dispensable position. As we all know, Google is an innovative great company, in fact, Google's innovation is not all create new things, more is the use of existing things to make combinatorial innovation, now the Android system, the same time for AJAX applications. Just as that would xmlhttprequest when it was hot, Google has successfully applied this new thing to popular applications such as Gmai, Google Maps, and more. JavaScript thus turned over, become a web development field must kill technology!

Although JavaScript has turned out to be the owner of web-side development, history is still evolving and technology is constantly being updated. Today, software applications have gone deep into every aspect of the lives of ordinary people. Over the years, the mobile Internet's development, It's about pushing JavaScript skills to an unprecedented plateau. JavaScript is not confined to the scope of application of the design at that time. It has been in the service-side programming, especially mobile cross-platform development, but also an efficient money-making skills.

Shoes with them! Looking at its history, are you anxious to master this efficient earning skill? Don't worry, please look forward to the next blog post!


JavaScript's past Life

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.