Node vs Deno | why deno? | Will deno replace Nodejs?
Ryan Dahl, the creator of Node.js, has spent the last two years working on Deno, a new runtime for JavaScript that is supposed to fix all the inherent problems of Node. In JSConf in 2018, where Ryan regret about Node.js and to improve intends to fix those mistakes with a brand new TypeScript runtime called Deno.
So, why would Ryan create a product that directly competes with his previous product? Well here’s a quote from Ryan Dahl.
“[node] could have been much nicer” — 10 Things I Regret About Node.js
In whole life, we are surrounded by people who doing nothing and act like they invented electricity. And here is the guy who invents the best technology of last decade (IMHO), and still remain shy. (click here to know more about Ryan)
What is Deno?
Deno is a secure TypeScript runtime built on V8, the Google runtime engine for JavaScript.
It was built with:
- Rust (Deno’s core was written in Rust, Node’s in C++)
- Tokio (the event loop written in Rust)
- TypeScript (Deno supports both JavaScript and TypeScript out of the box)
- V8 (Google’s JavaScript runtime used in Chrome and Node, among others)
Why Deno?
Every project manager must make decisions. Ryan regretted some early decisions in Node. Also, technology evolves, and today JavaScript is a totally different language than what it was back in 2009 when Node started. Think about the modern ES6/2016/2017 features, and so on. So he created some sort of the second wave of JavaScript-powered server-side apps.
Another thing which really appreciates about Deno is cooked up things. In the node environment, we have to install third-party libraries ( although it's very easy to import that my simply doing npm install ). but in Deno you don't have to depend much no these third-party libraries.
Will Deno replace Node.js?
No. Node.js is a giant, well established, incredibly well-supported technology that is going to stay for decades.
Should you learn Deno?
“Learning something new such as Deno is a big effort. My suggestion is that if you are starting out now with server-side JS and you don’t know Node yet, and have never written any TypeScript, I’d start with Node.” -Flavio Copes
Thank you for reading this article
visit : Coding Valley : )
Reference :
https://www.infoworld.com/article/3283250/ryan-dahls-nodejs-regrets-lead-to-deno.html