Joke Collection Website - Blessing messages - How to learn Node.js systematically?
How to learn Node.js systematically?
Features and syntax of JavaScript. If you are not familiar with JavaScript, recommend books and links:
List of JavaScript recommended books
Deep understanding of JavaScript series
What is Node.js? What's the difference between Node.js and JavaScript?
Advantages of Node.js? Disadvantages of Node.js?
Is Node.js suitable for the scene? Scenes where Node.js is not applicable?
Basic syntax of Node.js Functions of Node.js:
Single thread
Asynchronous IO
event-driven
What is npm? Basic uses of national preventive mechanisms
replace
etc
In fact, the above contents are introduced in most books of Node.js. After we have a basic understanding of Node.js, we can write some hello world programs:
Set up an HTTP server and return hello world. (using HTTP module)
Read a txt file and display the contents to the command line. (using fs module)
etc
Second step
You may think, what can Node.js do with only those core modules? Don't worry, there are nearly 7W third-party modules on npm, and the monthly download volume is as high as 2 1 100 million (20 14-4-20 data) ... This is the vitality of Node.js. When you know something about Node.js and can't stand it, you can't wait to try it. At this time, we might as well use the third-party module of Node.js to do something fun:
Build a Weibo website.
Set up a blog site
Establish an online chat room
Write a simple reptile
Call the API of some websites to do some fun things.
etc
However, it doesn't mean that Node.js can only do the above things. It can do almost everything that other languages can do, and in some cases, it can do better.
Third step
Of course, just as learning js can't just use the framework, learning Node.js can't just use external modules. At this time, we need to go back and learn more about the usage of the core module of Node.js. To put it bluntly, it is a necessary skill for code farmers to take a good look at the official API document of Node.js. Children's shoes browsers with poor English are equipped with a plug-in for word translation.
Fourth step
Practice more. Whether using core module or external module, try to solve a problem with Node.js or replace the code written in other languages before.
Read the source code. Reading the source code here does not mean reading the source code of Node or other larger frameworks. At this time, read the source code of some simple tool modules that only realize a certain function. The code of this module is usually a few hundred lines, which is not difficult to read, but it can go up a lot. For example:
Underline (learn the grammar and skills of JavaScript)
etc
Step five
Stick to the fourth step. When using Node.js, it is found that there is no suitable module selection or the selected module function is not satisfactory. At this time, you can try to create a module or modify an existing module, publish your own module with npm or go to the GitHub of the module. Improve public relations.
Step 6
Practice more. This needs no explanation.
Read the source code of the node and the source code of the larger framework. Raise the necessity
Pay more attention to the awesome people on GitHub.
Repeat step 1-6.
- Previous article:Send a text message to your girlfriend every day and say "I miss you", ok?
- Next article:Nike grabbed the results at 9: 00.
- Related articles
- I received a text message like this yesterday and I was threatened today. I don¡¯t know if anything will happen to me.
- The latest code word on idle fish 2022
- The desire of middle school students is short-lived and domineering.
- What text message do you send to refuse overseas calls?
- How to set the ringtone of glory 6 mobile phone?
- How does Nokia 900 intercept harassing calls and text messages?
- Notice of emergency headquarters Municipality on Prevention and Control of Pneumonia Infection in novel coronavirus (202 1 No.2)
- Can iphone customize SMS ringtones?
- I wish my elders good health.
- Does texting only show the time?