What is NodeJs ?, Interpretation of nodejs by programmers
Before figuring out what node. JS is, let's talk about JavaScript. Anyone who has developed JavaScript should know that JavaScript is currently the most popular.Front-end (client)The usage of the scripting language and JavaScript in Web projects can be said to be more than 99%. It is no exaggeration to give an example: "99 of the 100 Web pages you open use JavaScript ". The reason why JavaScript is so popular is actually very simple. The emergence of JavaScript gives new vitality to the web page, from the very beginning it is only generated for form verification, up to now, trillions of websites use JavaScript for various effects and humanized functions. It is estimated that it is difficult to write the contribution and position of JavaScript in the front end with a book. When I see the introduction of JavaScript above, many people will certainly say that it seems that the JavaScript language is excellent, so there will be so many people to use it. That's right, for a real understanding of JavaScript (master) this voice is really good, but for common JavaScript users, JavaScript is a very difficult thing to handle (if it is not required to fulfill a function of the Boss, ). It is too flexible. Although flexibility is a good thing, you cannot control it if it is flexible. For example, how many people know what function represents in JavaScript? Many people may say that it is not a function? "Haha, too young"), you will feel that this is not a good thing for users, but I think this is why it can finally go back-end development. For the ever-changing back-end functions, a flexible language may allow us to write more flexible code. To get started with JavaScript, we used to use JavaScript as a front-end scripting language. To run JavaScript in a language, we need an execution environment, just like our Java code, which needs to run in JVM. JavaScript is no exception. What is the resistance of the JavaScript execution environment? That's right. It's our client browser (IE, FF, Chrorme ....). The reason why we call itFront end(Client)The script language is because of its runtime environment. One day, Ryan Dahl, an American programmer who loves JavaScript just like me, decided to use JavaScript to do more meaningful things, give JavaScript a new position in development, and use JavaScriptBackend (server)Programming Language Development, my day, this idea is simply crazy (such as the same dog, one day said to the Cat: "I want to start catching a mouse ". The cat ridiculed and said, "Oh, you are the only one. Can you do it? "). "Why? Real problems"Of course, this question is not the same as the story:" Which excavator technology is strong? "Ryan Dahl is not interested in thinking about such a problem. To make JavaScriptBackend (server)Programming Language, you must first remove the client browser from the current JavaScript execution environment. Ryan Dahl came up with a good idea to build a new JavaScript Execution Environment Based on Google Chrome's open-source browser V8, instead of using the browser client), and added the functions that the Server programming language should have on the basis of the V8 engine, such as file systems, modules, packages, operating system APIs, and network communication, therefore, a new platform named NodeJs is generated. NodeJs = JavaScript Execution Environment + JavaScript Extension function. A simple understanding of NodeJs is a platform that allows JavaScript to be executed without a browser, and the platform enhances JavaScript functionality.Related Resources:Http://nodejs.org/http://baike.baidu.com/link? Url = ResponseFollowed: