JavaScript-who can briefly describe what node. js is? Specific usage? Thank you, novice.

Source: Internet
Author: User
General development We all use thinkphp+bootstrap+jquery and so on.
node. JS is generally responsible for what, read some information on the Internet, generally understand.
But who can talk about specific applications. He appeared to solve the problems of the past?
What convenience can I use him to bring me?
Thanks
Excuse the novice.

Reply content:

General development We all use thinkphp+bootstrap+jquery and so on.
node. JS is generally responsible for what, read some information on the Internet, generally understand.
But who can talk about specific applications. He appeared to solve the problems of the past?
What convenience can I use him to bring me?
Thanks
Excuse the novice.

node. JS uses V8 as a JavaScript interpreter (engine) that allows JavaScript to run independently of the browser, V8 by Google, and also Chromium/chrome's JavaScript engine, and Webki T has no apparent relationship.

In addition to V8, there is a CommonJS-compatible module mechanism in node. js that helps developers organize their code. node. JS has some common modules for server-side programming, and a C + + API to allow developers to expand functionality for node. js.

node. JS absorbs the "event callback-based asynchronous single-threaded io" model from the Web front end, which includes almost all libraries, including the built-in modules, so it has a better concurrency performance. "

node. JS does a lot of work, so that JavaScript applications written in node. js and modules written in C + + can run on major operating systems, including Linux, Windows, OS x.

For front-end developers, node. JS has several implications. First, you can write some simple back-end projects with JavaScript, and if you build a real utility project, you also have to learn a lot of new knowledge, so not to say that with node. js, the front end can rob the back-end of the rice bowl.

Second, because of node. js, there are many tools for the Web front end, such as build tools (gulp, bower, etc.), Unit test tools (Mocha, jscoverage, etc.) that can make the front-end development easier and less repetitive, while these tools are also used in Java Script, the front-end programmers can easily customize these tools.

node. JS is a server that allows you to write service-side scripts with JS.
Remove already have a lot of ready-made modules do not mention, can use JS for the front-end developers can be considered the most convenient bar.

English: http://www.ibm.com/developerworks/cn/opensource/os-nodejs/index.html
English: Http://en.wikipedia.org/wiki/Node.js

Nodejs can be operating system I/O, using JS independently of the browser.
The application scenario can do front-end building, engineering management, or writing functional scripts.

node. JS is a backend JavaScript runtime environment that implements network requests, file operations, streams, event drivers ... and other core modules
node. JS uses event-driven, asynchronous I/O for high-concurrency network services

Asynchronous programming style and JavaScript syntax may be too bold, but the world does not lack of cattle x, you can use the Async.js, step.js and other process control modules to make code bold and elegant

I use it to achieve log analysis and Web page crawl, is really faster than the synchronization of the way to a lot of times, throw a street, but the problem is to write more difficult, callback inside callback callback, logic long, maintenance is a difficult
Its Code dependency library, have to say I have seen the best use (NPM)

node. JS is the biggest benefit for people who have just entered the front end with the use of node. JS-based tools such as Grunt, GLUP,NPM, and a variety of plugins, and the recent launch of the Atom on GitHub is based on node
Go further, discover that the existing things can not meet their own team needs, and try to write, to learn node, I think this is a direction
Of course, for large companies, it may be possible to take advantage of node's non-blocking features to do some file servers, and so on, more interesting server-side things.
For those who want to learn Nodejs, first in-depth use of the experience under the Nodejs tool, perhaps the best solution

I've been looking at node. js for a few months, just a little bit of understanding.
What does node. js do with the code that allows JavaScript to run the server program running on the server side.
A bit like Tomcat and IIS, and of course node. JS is not the same as they are misunderstood.
Said node. JS is a language I am also drunk, although I do not know when I was so misunderstood.
Looking at the running Code of node. js, you can see that this is not JavaScript.
As for the specific how to use, read, really want to learn to chew the book, the book has a large string of code to show you.

  • 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.