Pre-requisites to learn node.js?

综合技术 2018-03-30 阅读原文

http://www.crockford.com/javascript/inheritance.html

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

Node.js Recipes

责编内容by:Node.js Recipes阅读原文】。感谢您的支持!

您可能感兴趣的

关于开发node.js个人网站,你需要的知识都在这里了... 前言 nodejs.jpg 从2016年5月份开始,接触Node.js到现在已经有一年半的时间了。从最初的懵懵懂...
In-process persistant key-value store for node.js I have a need to store some meta-data in a node.js application I am writin...
2017最新版web前端学习路线图 web前端算的上是it互联网编码中最为简单的类别了。而且并不需要大批量的代码,只需要能够读懂代码,制作一些简单的表单,建立交互状态等一些比较基础的工作。却拿着...
how can i avoid race conditions in node.js when i&... i'm using this authorization function in my socket.io setup: io.set('authori...