DEV Community

Cover image for Why to use Deno?.
Nikhil karkra
Nikhil karkra

Posted on • Edited on

Why to use Deno?.

What is Deno?

Deno is a simple, modern, and secure runtime environment for Javascript and Typescript that uses V8 engine and builds with Rust Programming language.

Like any other language, it is used to build backend services or Application Programming interfaces(API) which are used in Web and Mobile applications. It is also used for communicating the database, sending an email, or storing a file on the server.

so, the question is Why Deno.

Below are the features that makes the difference.

1. Easy

  • Deno is Easy to get started
  • No need for prior knowledge
  • Really amazing for prototyping and agile development.

2. Fast, Reusable and Scalable

  • Deno is useful for creating a superfast application.
  • It is highly reusable and scalable
  • faster requests speed and response time

3. Save time

  • Deno save time in development
  • 40% percent of fewer lines of code
  • 40% fewer files
  • It has many Built-in utilities like dependency inspector, Deno formatter, and so on...

Reference - https://news.ycombinator.com/item?id=18058571

4. Secure by default

  • No file or network or environment access unless you have enabled it.

5. No Package manager

  • In Deno, you don't have to install big node_modules
  • When you called the library which you need it automatically cached on the file system.

6. Typescript

  • It Supports TypeScript out of the box.
  • If you know TypeScripe you can become easily full stack developer

References
https://deno.land/
https://dev.to/somijaiswal23/building-blocks-of-deno-3f2

Alt Text

Top comments (8)

Collapse
 
avalander profile image
Avalander • Edited

I think this article could use some references and more detail to be useful to people trying to decide whether to use deno. For instance:

No need for prior knowledge

That's highly debatable. You can say that about anything since you're gonna have to learn it along the way. Why is it easier for a plumber that has never seen a piece of code to write a service in deno than let's say PHP?

  • Deno is useful for creating a superfast application.

Where are the benchmarks proving this?

  • faster requests speed and response time

Faster than what? Rust? Again, where are the benchmarks proving this?

  • Deno save time in development

  • 40% percent of fewer lines of code

  • 40% fewer files

Compared to what? Let's say I'm writing an application in Clojure, can you guarantee I'll have 40% less code if I switch to deno? Where are the case studies?

Collapse
 
karkranikhil profile image
Nikhil karkra

That's a very good point. Let me build a small demo in all languages and try to find out.

Collapse
 
khuongduybui profile image
Duy K. Bui

"40% percent of fewer lines of code"

Can you please explain a little bit how we end up with 40% fewer lines of code?

Collapse
 
karkranikhil profile image
Nikhil karkra

news.ycombinator.com/item?id=18058571

Full explanation is here

Collapse
 
savagepixie profile image
SavagePixie

But that's moving from Java to Node. Deno isn't even in the picture.

Thread Thread
 
karkranikhil profile image
Nikhil karkra

Deno is using the Typescript and as mentioned in the link that migrating from JAVA to nodejs/Typescript

Collapse
 
oganexon profile image
oganexon

You have to be careful with words, Deno is not a language.
This doesn't bring anything new in terms of programming language, however the development philosophy is very interesting.

Collapse
 
karkranikhil profile image
Nikhil karkra

let me update the heading :)