we'll know just die I'm asking this question because denno is here so what I
need to learn denim are known I will answer this question at the end of the
video but first let's see actually what is denim so if you are familiar with no
Cheers if you know what Nodejs can do for you I
can introduce you with Deno and I can say there is deeply improved version of
node. Node and Deno are closely related because Ryan has created nodejs in
2009 or decade before and now the same Ryan is having another runtime built
for JavaScript called Deno and the exciting part is there now the stable version
version 1 is now released on 13 May 2020 so Deno is actually a secure runtime
for JavaScript and typescript just like Nodejs
it can be used to create the server application the deno is written in a
rest lang and typescript and uses the same v8 engine that is powering Nodejs
to transcript the JavaScript into machine code so if you visit the node js
website it says node is a JavaScript runtime build and if you visit the Deno
website it says a secure runtime for javascript and in that script here I
want to emphasize on to word one is secure another is typescript so these
two things are in built in Deno you don't have to worry about these things
but now let's focus on the key features of Deno why deno is so famous they
know is super famous because it is very very secure no one can access anything
unless allowed not even the developers yes not even the developers no file
network all environment access are available until explicitly
inequality if you are trying to run a day no code then you will get error if
you have not given any permission you need to run these options like allow
environment allow our network allow plug-in and various things it is very
famous because it uses that decentralized system consider package
torjussen which works with the centralized NPM system and NPM is
managed by some company or industry nowadays by Microsoft but then you take
a different approach Deno such as all the packages from just
the URL or from your local disk this means you can create your package and
without worrying to publish on any centralized place like node website and
you can directly play with your package you can have turns of official and
third-party package for deno that will help you to build some great
applications because it is using the decentralized system there will be no
package manager that means no node module no package dot
Jason and no NPM install let's take an example code here this code is for
creating the server and you can see here we are inputting the server directly
from the URL directly from the denill and standard library of server and
that's an amazing thing so if you try to run this server it's going to first
download everything and then after that whenever you try to run the same code
it's not going to download it again and again because first time it download and
caches and every time you ask for that package it gives you that from your
caches and that's an amazing part they know is also super famous because it
uses the modern JavaScript in modern JavaScript the ACMA script works out of
the box internal and promises are inbuilt internal so you don't have you
don't to define I think to use the await let's
take the same example once again here you can see we are using a weight
without defining any a sink and next it is so famous because it's supposed to
type script you know many developers considered type script as the future of
JavaScript and now diverse depth is inbuilt in denim that means you don't
have to worry about the compiling that type of script code Tenno does all the
work for you there will be no type of script
configuration file and this doesn't mean you can not use the normal JavaScript
you can use but because there is type script support and that the script is
very great that's an amazing move next demo is super famous because it uses the
single executable file it create a single executable file you can run
program without any dependencies and once you have downloaded all your
dependencies you can work on the airplane mode also denno is also famous
because you don't have to pull any external library for your testing
because then who has its own testing module daño is very very developer
friendly because it has its own dependency inspector and code formatter
called denno fmt you don't need any prettier to format your code that's
again once again a great move and last but not the least the super important
thing denno has is its support for the web assembly
there are many packages which will help you to create the web assembly things
with the denim and you can use it to build an amazing thing but now let's
talk about what's the problem with no Cheers why does created denim so del
actually left node on 2012 when he reaches the goal of creating a solar
application use javascript then after he realized that
nude is a mistake lots of thing he regretted about this and he has
mentioned everything on this JavaScript conference and you can find the link in
the description but I will tell you every mistake he had on noon first the
most important in state is not sticking with the promises when note was written
there was no concept of promises there was no missing and awaited and that's
why note it doesn't have any asynch and await system invent next mistake was the
insecure node is super insecure if anyone wants to get the access of any of
your note file he can access all of your server
everything is open for everyone with one single door that's a very bad thing next
mistake is package dot Jason you don't in package store Jason whatever package
you have defined is available in NPM please is available in node module is
available in you files my redundancies and the most problematic thing is
algorithm to resolve the package is super complex in no cheers next mistake
he had is the build system note was written in C C++ and GIP was used to
compile all C codes initially GIP is used by google in v8 but later I dropped
the support but because no GS was written initially with the GIP only node
is using it so these were the mistakes the dal had and that's why he had
created the denim now let's answer the two questions I have asked initially
first what should I need to learn either No
Cheers or denim I would say don't rush towards the latest technologies if you
know nodejs that's enough but if you are going to
start with node I would say start with denim because dam is the future and that
lead to the second question is will no die I would say the answer is yes
but that will take at least two or three years to die until node isn't going
nowhere but because steno is covering all the flaws of no Cheers
denno is the future so once again if you are going to start it anything then
start with denno instead of no Cheers if you know no GF you need to learn denno
slowly so that after one or two year you will become the master of denim instead
of no Cheers so now let's welcome denim and start learning it