cover photo credits - Fernando Doglio
- What is Deno❓
- Why Deno?🙋
- Good News for TypeScript!😍
- Will Deno replace Nodejs?🔑
- Should I start learning Deno?📓
- Let me know your thoughts!✉️
- Thank you!😃
Under the hood, the major difference between Node and Deno is that Node was written on C++ as Deno was written in Rust. This provides Deno with a more strict validating procedure and is memory-safe compared to Node. Deno uses ES Modules as the default module system, whereas Nodejs uses CommonJS. With Deno, the dependencies are loaded using URLs which defeats the need for package manager or centralized registry(you heard me!📢 No package.json!😱) and comes with built-in utilities such as a code formatter while you would need to install dependencies for Node.
A big difference with Deno is that access needs to be explicitly granted which means better security. Because of this, Deno will run TypeScript right out-the-box(first-class)! This is a huge benefit as with Node you would need to install and configure the necessary tools🔧 needed to write in TypeScript.
The short answer to this is not right now. Currently, Node is a well-established runtime that will be highly used for many years to come. Although Deno has a lot of potential to be the top technology for web applications, It is only in version 1.2.1 while Node is in version 14.7.0 as of July 29, 2020. Deno will be in development for a few years before it has enough features to be a competitor of Nodejs.📆 The biggest disadvantage is that Deno does not support most third-party modules. As of 07/30/2020, there are 799 supported third-party modules. 🔖 Click here for the current list of supported packages.
For beginners, I recommend learning Nodejs. Node is still highly-used for many companies and projects with only a handful of companies utilizing Deno. While Deno's third-party modules library📕 is steadily growing, Node has a large list of modules ready-to-go for your next project. For experienced developers, this is your chance to be an early adopter of a highly-anticipated technology. It will serve a great benefit to show employers that you have been using Deno for some projects since version 1.0.0 has been released(at least until you find the "Must have 10 years of experience in Deno" job listings when Deno has only been out for five years😕).
Are you currently exploring Deno? Do you think Deno will replace Node? If so, when you think Deno will be ready to replace Node? Comment down below your thoughts or mention what I left out about Deno or Node.
If this article provided any value to you, please leave a ❤️ or let me know your thoughts! Follow me to keep up when I post more articles as I will be posting five days a week until further notice. I might continue the new series of "Simply Explained" topics. Let me know what other topics I can simply explain to you!