You have one thought, I have one thought, and when we exchange, one person has two thoughts
If you can NOT explain it simply, you do NOT understand it well enough
Now the Demo code and technical articles are organized together Github practice selection, convenient for everyone to read and view, this article is also included in this, feel good, please also Star🌟
Project needs, I need to store up some node.js related knowledge, overall feeling is a good thing
background
I’ve written front ends in the past, but that mostly used HTML5 + jquery-related technologies. There was no precise point in time, and I was too busy focusing on the Java back end
Angular, VUE and REACT are front-end frameworks that I only know a little about and have never used at all. Using Node as an intermediate server is also relatively new to me. I will definitely not miss this opportunity to lose my hair when I need it in the project.
After all, writing Node code in a real project is a serious problem that I have to take seriously, otherwise it will cost my teammates too much WTFs/min energy (what does this mean? Please see [read “Clean Code Code Clean way” perception]), as a small white, through learning a short period of time or gain, the following main say about my learning process, please have the experience of the big guy more correct, let me take a few detours more hair
Node. Js learning
Like everyone, I am also a variety of Internet access information, here will be the current learning process to do a simple record
Node. Js’s official website
Learning something, the first step is naturally to open the official website, here root miao Red, different
Advantages: You can quickly have a relatively intuitive understanding, complete documentation and APIS
The bad: The seedlings here are so good, [event-driven, built on a V8 engine] and other unfamiliar words are just like words our parents used to say to us when we were kids, and we only understand them when we grow up
In the face of these strange content, I am not very worried (the heart of a P), I believe that when I grow up, I will understand, with no mercy to shut down the website
tutorialspoint
Tutorialspoint is one of my favorite learning sites. There are many technical tutorials on tutorialspoint
Advantages: simple and clear tutorial content, step by step, complete case code
Cons: This is an English site
(Tips: Reading English documents should be one of our necessary skills)
Don’t be scared by The English website, there is no strange vocabulary, follow the Node.js tutorial from start to finish, have a relatively comprehensive understanding, know the basic skeleton content, while masturbating to take notes (ignore the scrawl)
There are still a lot of things I don’t understand in the middle of the journey. I circled them with a yellow pen and looked them up slowly in the back to keep up with the main line in case I ran off track
Geek Time/MOOC
The teaching video is the essence of the predecessors’ concentration for many years. With some basic concepts, I will choose to stand on the shoulders of giants to have an overall look. I mainly search for video materials through Geek Time and MOOC. I also purchased the following course at Geek Time
This course doesn’t cover a lot of basics. The first chapter is a simple rock-paper-scissors game to illustrate some of node.js’s features, followed by the implementation of geek time pages
Yang Hao teachers explain clearly, interspersed with a lot of cold humor, but for me, the small white, this course see late, inside a lot of content I can’t understand, but said some building ideas, such as CommonJS, these contents are still very useful, video courses now looked at more than two-thirds, I chose to press the pause button, I feel it is necessary to write some Demo to use some of the knowledge I have learned above, I believe that when I go back to watch this video, the harvest will be different
Github
Welcome to the world’s largest gay dating website, can’t think of what kind of Demo to write, so come here to search, also really found the self-built Blog learning project N-blog (you have any needs can be the first to find the wheels above)
Look for a few items:
- A. Degree of activity
- Star /fork quantity
- README/ Wiki authoring quality
- Issues Processing
Checked the eyes against the above criteria, and this is the girl I’m looking for
The project mainly applies the following technologies:
- Node. Js: ` 8.9.1 ` - mongo: ` 3.4.10 ` - Express: ` 4.16.2 `Copy the code
Look at the technology stack, you can identify that this is close to the existence of the real project, so, step by step to knock on code, knock on code, knock on code (not copy and paste), because knocking on code may be wrong, so I gradually learned to debug in the learning
It took two days to make the final result
Although the sparrow is small and has all the five organs, it has encountered too many problems in the implementation process, such as:
- NPM global installation permission problem
- Homebrew MongoDB does not support services directives
- Unfamiliar API usage issues
- .
I took notes during the learning process and made the following mind map based on the project content. Only when all the leaves are lit up can I finish the Demo (more details are hidden in node Notes).
This mind map is definitely not a standard Node.js learning content, but just to deal with my basic learning this time, the subsequent learning will continue to modify this mind map
conclusion
You think we can just ditch the website? In the process of debugging and coding, when you encounter a certain knowledge point, you should go back to the official website to check, where there is the most authoritative explanation. Plus, looking at the website with a purpose is always more comfortable than diving in, don’t you think
This is not so much the way I learn Node.js these days, as it is the overall method and route I learn new things, write this article also want to take this as a topic and everyone to talk, welcome everyone to leave a message or enter the group to share each other’s learning methods/reading notes/technical exchanges, common progress
Every once in a while, I also output node.js related content. You think I’m bored? In my heart, Java is still at the top of my heap (I must spoil her)
Finally, don’t stay in your comfort zone forever. Stay hungry, Stay Foolish
Personal blog: https://dayarch.top Add my wechat friends, enter the group entertainment learning exchange, note “enter the group”
Welcome to continue to pay attention to the public account: “One soldier of The Japanese Arch”
- Cutting-edge Java technology dry goods sharing
- Efficient tool summary | back “tool”
- Interview question analysis and solution
- Technical data to receive reply | “data”
To read detective novel thinking easy fun learning Java technology stack related knowledge, in line with the simplification of complex problems, abstract problems concrete and graphical principles of gradual decomposition of technical problems, technology continues to update, please continue to pay attention to……