Pre-requisites to learn node.js?

综合技术 2018-03-30

JavaScript is a class-free, object-oriented language, and as such, it uses prototypal inheritance instead of classical inheritance. This can be puzzling to programmers trained in conventional object-oriented languages like C++ and Java. JavaScript's prototypal inheritance has more expressive power than classical inheritance, as we will see presently.

Javascript and Java are two different beasts.

I have been writing JavaScript for 8 years now, and I have never once found need to use an uber function. The super idea is fairly important in the classical pattern, but it appears to be unnecessary in the prototypal and functional patterns. I now see my early attempts to support the classical model in JavaScript as a mistake.

Some things I think you should look into.

  • Testing your code thoroughly with framework like for example mocha
    is very important.
  • learn npm
    to publish your own modules and to search
    for other modules.
  • A database like for example mysql, mongodb or redis
    and how to use them in node.js
    . I pesonally really like redis client library
    for it's insane speed.
  • Git(hub)
    to put your code into a repository(SCM).

Solution courtesy of: Alfred


async和enterproxy控制并发数量 聊聊并发与并行 并发我们经常提及之,不管是web server,app并发无处不在,操作系统中,指一个时间段中几个程序处于已经启动运行到完毕之间,且这几个程序都是在同一处理机上运行,并且任一个时间点只有一个程序在处理机上运行。很多网站都有并发连接数量的限制,所以当请求发送太快的时候会导致返回值为...
JavaScript Enterprise Container: From Java to Node... This article introduces the “ JavaScript Enterprise Container ” (JEC) project for both Java and JavaScript developers. It will show a flexible ...
Dockerizing a Node Express API app with MongoDB in... Node, Express and MongoDB work very well together. Put Docker into the mix and you have a very interesting cocktail. In this post we shall develop a...
Back end development in 2018 Modern Backend Developer in 2018 Web development today is completely different from what it was a few years ago; there are lots of different thing...
Push System without node.JS I want to create a facebook-like notification system (the one who appears on the bottom-left side of the screen when someone comment on your post, ...