If you are a PHP Developer maybe you are used to write your server-side code in PHP and then you make run your code on a web server like Apache. Javascript, from your point of view, it’s simply a client-side scripting language and you use it to handle the front-end client business logic on a web page. A front-end developer might argue that with javascript is possible to manipulate the DOM via a library such as JQuery. You can do more than this. With one language you could code client-side and server side of a web application. Your brain context-switching will say “Thank you”. This is actually a benefit, for both developers and other company’s stakeholders (Search on google “the cost of context-switching for developers”).
So, it may sound strange to hear “Write your server-side code in Javascript using Node.js techonology“.
Anyway, you are here because you don’t understand why you should use Node.js to develop web applications.
Take a rest, drink a coffee and continue to read this article.
Continue reading “I’m a PHP Developer, why I should use Javascript & Node.js to write my server-side code.”