A QUICK SUMMARY – FOR THE BUSY ONES
TABLE OF CONTENTS
Popularity often comes with misconception and rumours. Due to the fact that Node.js became very popular, there are a lot of false beliefs about this technology.
In this article, we will bust some myths about Node, explaining in detail what the truth is.
In the end we also present a few app types Node.js is best for. Why? Because (again!) there are a lot of misconceptions about that.
<span class="colorbox1" fs-test-element="box1"><p>Node.js is a server-side runtime environment used to build fast and scalable applications. It is light and lets you create a web server in just a few minutes.</p></span>
Ryan Dahl, the inventor of Node.js, states that being inspired by Gmail, his goal was to devise a system for building websites with real-time push capability. So the event-driven paradigm became the heart of Node. Unlike the previous “request/response” paradigm, finally, developers gained the possibility to make 2-way connection websites (client and server) with free data exchange.
But often people face certain misconceptions about Node.js development. Here are the most common myths busted.
You can do it with other programming languages, but it isn’t that easy. It either requires transpilation and dealing with much a smaller community (ex. TypeScript, CoffeeScript, Elm) that works only in some browsers (ex. JScript works only in IE), using a deprecated technology (ex. Adobe Flash, Java Applet, Silverlight, Moonlight) or having a significant overhead (GWT requires much memory and has a long compilation time).
Besides that, with Google developer tools, you can also perform debugging tasks. In Chrome 57+, there is the Node.js debugging feature by default, and you can use it to eliminate errors both in front-end and back-end.
The Node.js community is open and friendly, ready to share any packages of code. Node ethics allows and welcomes this approach, making it simple to do so. Any author can publish code or create modules in a public repository. In legal terms, there’s the MIT open source license in play, taking care of all intellectual property issues.
You may find about 475K code packages in the NPM alone, which has grown from package manager to a repository. More on that in the next paragraph. Thus, it is very likely that when you face some challenge/task with Node.js development, there is already a solution.
This feature indicates that apps on Node.js consist of smaller modules that you can share. You can compose and manage each of them, as the nature of developing such modules with Node is care-free and facilitates experimentation. Each package usually takes care of one task, so it is highly effective.
One final fact is that Node.js comes with fine instrumentation, documentation and best practices. This is aimed at helping at every stage of app development, best performance, and readiness for production.
It would also be appropriate to list what pros and cons there are to Node, so let’s do that.
So while there is some debate about appropriate Node.js use, what are the areas where Node shines? Below are some examples.
Chat. A most typical real-time application, a messaging chat application shows all the best of Node.js. Multiple users, big traffic, intensive data and running across devices. Also good to learn Node while making a chat, as it covers almost all the paradigms of a typical Node.js app.
Data streaming. Leveraging the fact that HTTP requests and responses are basically data streams, we can use Node.js to create some positive features. For instance, processing files while they are just being uploaded, e.g. for audio/video encoding.
Monitoring dashboards. To collect real-time data about website visitors and visualizations, you can use Node.js nicely to make system dashboards. User statistics and the ability to see what they are doing instantly, isn’t it great for business?
Every year, Brainhub helps 750,000+ founders, leaders and software engineers make smart tech decisions. We earn that trust by openly sharing our insights based on practical software engineering experience.
A serial entrepreneur, passionate R&D engineer, with 15 years of experience in the tech industry.
Top reads this month
Get smarter in engineering and leadership in less than 60 seconds.
Join 300+ founders and engineering leaders, and get a weekly newsletter that takes our CEO 5-6 hours to prepare.
No previous chapters
No next chapters