Is node.js a viable alternative to traditional scripting languages like Perl and Python? [closed] Is node.js a viable alternative to traditional scripting languages like Perl and Python? [closed] javascript javascript

Is node.js a viable alternative to traditional scripting languages like Perl and Python? [closed]


In terms of Node.js, I can't see it becoming a mainstream way of using javascript as a general purpose scripting language. The main reason for that would be the async nature of 99% of the libraries and functions available in Node.js. Because of the async nature, you have to completely change your thinking. Not having synchronous methods available is the stumbling block. It makes things less script like as your code is not linear anymore.

So the adoption is not happening for the simple reason that most of the time you're thinking: I could write this a lot quicker/simpler in Ruby/Python/... (just try downloading 5 different files, zipping them and copying them to another folder using Node.js)

As people get more used to thinking and programming in an async way adoption of node.js as a general purpose scripting tool might change.

If every async function in node had a synchronous version, adoption would have been different and people would have ended up with non scalable node.js servers because they choose to use sync methods in places. Arguably, node would not have become popular as the performance numbers wouldn't have made it stand out.

In short:

adoption of node.js is happening because of it's async nature.adoption of node.js as a client side general purpose scripting tool is not happening due it's lack of synchronous functions.

Please keep in mind that this is based on my own experience and opinion and not on articles or numbers I found on the internet so try it out for yourself and make up your own opinion.