17 JavaScript / Node.js performance coding tips to make applications faster

Click for: original source

Paul Shan article about misconceptions, shallow knowledge, bad assumptions among the JavaScript community members. In this article author has come up with a list of tips, which can make your JavaScript application faster.

This article is about coding in JavaScript to make the performance better.

Some rules and tips form the article:

  • No global vars please
  • Only homogeneous Array
  • Put common codes in a function
  • Closure & timer – a deadly combo
  • Create class for similar kind of objects
  • forEach vs for()
  • Avoid for…in

And many more in the article. Increasing your server’s configuration, scaling it out, distributing the services are some of the very well known processes to make your application perform better.

But if your code is causing memory leaks or sequential processing; all those dev-ops steps will not able to save your server getting slowed down or even crashed. Good read even for seasoned programmer!

[Read More]

Tags programming javascript web-development