Deno in 100 Seconds
Вставка
- Опубліковано 4 тра 2020
- Deno is a brand new JavaScript runtime, similar to Node.js. Use it to develop secure server-side apps with built-in TypeScript support, ES modules, and promise-based APIs.
Learn more at deno.land
#javascript #nodejs #100SecondsOfCode
Install the quiz app 🤓
iOS itunes.apple.com/us/app/fires...
Android play.google.com/store/apps/de...
Upgrade to Fireship PRO at fireship.io/pro
Use code lORhwXd2 for 25% off your first payment.
My VS Code Theme
- Atom One Dark
- vscode-icons
- Fira Code Font - Наука та технологія
Deno just hit v1.0.0-rc1. I have to say it's awesome to write scripts with TS support out-of-the-box. What do you think?
Will node be replaced by deno?
Your content has always been good. But it's on another level now, your scripts have 0 fluff and your editing jobs are really incredible and a very entertaining to watch.
Mad props on your development as a content creator love your videos. :)
@@sanusihassan7125 Depends on all the developers and support currently in place for Node. Just like any technology stack if it ain't broken don't fix it. Unless someone has some time on their hand to make a Node => Deno I don't see it happening overnight.
@@Jessyco you are right
The only thing I don't like about Deno is how it uses async iterables for listening to connections instead of events. Here's why:
1. It doesn't make sense to "iterate" over a listener.
2. It can cause bugs, because `await`ing inside a `for await ... of` will block requests from coming in.
3. Want to write something after the `for await ... of` loop? It won't execute.
It feels like writing in a systems language, where the whole thread stops, waiting for something to happen. I also don't like the callback hell, but sometimes callbacks make more sense.
2009: NODE
2018: DENO
2027: NEDO
2099: DONE
ENDO
@@KingKong-zq4mp ODEN
Good one!!
@@gpguru7355 THOR?
@@daxitpatel LOKI
Job postings already asking for 3-5 years of Deno experience
that is clearly lol
I just got 5 years of experience watching this 100s video.
I agree with this 😂 smh
Exactly what I am thinking 😂
@@muhammadfaateh6463 😂
Letters "D", "E", "N" and "O" can be arranged in 24 different ways. We already got NODE (2009) and DENO (2018).
Assuming new JS runtime comes out every 9 years, we should be covered for next 204 years.
Can't wait for ODEN! Hope I'll live long enough!
DONE
@@VictorNascimentoo They should
symbolically release DONE as v24! Fingers crossed for 2216.
Definetly DONE will be the last one
@@tasehagi Yummy
Can’t wait to try this out. Fireship is like Santa bearing toys for devs.
Christmas in july!!
it's nothing exciting tbh
Same here
Yes
Definitely agree. I have already 6x more frameworks and languages I want to learn, that the ones I can use. xD
I love JavaScript world! Don't try to fix existing stuff, just create a new one!
Haha, according to Ryan Dahl, Node is basically unfix-able because of all the legacy stuff it needs to support.
@@Fireship 5 years from now deno will have the same problem.
Anyway cannot use it before large cloud service providers adopt it.
@@adam-k Ain't cloud servers supposed to allow you to install whatever you want?
@@adam-k sure all software needs to be upgraded and maintained, but the point here is node's architecture is bad and upgrading is extremely difficult. That's why you see late adoption of newer es features.
eg: you can virtually forget about top level await in node.
Impossible for node to start on ts and wasm support
on the contrary, look at software that tries to "fix existing stuff" without breaking BC. PHP is full of baggage from bad decisions in the past that won't be removed because of backwards compatibility. Java also suffers from this.
2022: NODENO - fixing all the problems with DENO.
3 weeks later: NONODENO - self explanatory
cant fix something that aint broken :P
deno = so.. you have to use npm to install deno ...
pretty much sums it up...
pretty sure everyone keep using npm :D
@@Microphunktv-jb3kj I don't know what you're talking about, but I'm pretty sure you don't install deno using npm.
I would call it "DONE"
Once you mentioned the Rust bindings I was sold! I'm excited to dig in and try this out. Would love to see more vids on Deno, WASM, and Rust in the future, thanks for the great content as always!
This is one of the best channels I have subscribed to in a very long time. Thanks for these 100-second videos, they are simply amazing!
Thank you for talking about this. I had forgotten about it after hearing about it almost a year ago. I would have thought it had fizzled out had it not been for you. I really enjoy your breadth and depth of topics. THANKS!
Thank you, thank you, thank you for this video format. With so many web technologies, these 100 seconds videos save me so much time with basic explanations for what they are and what they're used for.
I'm a first year software dev student. I'm nowhere near this level of knowledge but I still like learning about all these advanced technologies. :)
The only true skill you will acquire for real, is choosing what to ignore and what to learn :)
So jealous of you. Wish I had subscribed to fire ship when I was in my first year
Try to keep that beginner’s mind. It’s a blessing.
You will get there ;)
I think that once you'll understand how servers (especially http servers) work, it'll be easy to switch between every framework, as the hardest part of entering in a new framework is always learning the new syntaxes and what it can do without you needing to configure anything, but then the request respond architecture is always the same across all languages.
Edit: fixed typos
nobody:
recruiters: "we need Deno programmer with 3 years of experience"
This looks really interesting! I have never heard of Deno before this video, and I think I might see it a lot more in the future!
Holy cow, _shivers_ that top level await though. And server side TS just makes sense. This looks so rad.
More of this pls! It's nice as a developer to meet these technologies in a short way.
Your videos are so well made that I would watch them even if they would be about crocheting.
I have been waiting for Deno to hit a useable release. HELL yes. Thanks my man for bringing this to my attention.
Already using it and already loving it!
Okay I am stoked to try this!!! it is pretty awesome, especially the fact that it does away with so much boilerplate (The lazy side in me is winning). Thank you
As a Rust developer I would be very happy to use Deno if it can import crates directly for server side usage. I mean WASM is good and all but it requires some extract work to bridge between the JS and Rust is something I'm too lazy to do. And branch out from tokio runtime would also be cool.
Deno is honestly super interesting and I'd encourage the use of it over node for beginners.
you are the reason I stopped recording how tos or todos videos, dude, your videos are just great and I thank you !
your video editing and those memes you throw around are fire XD
So is your body
just binged your channel vids and you came up with this
Love this runtime, single executable, import directly from url, they started with golang but they moved to rust which is a great choice, caching of already compiled codes, sandboxing (nothing outside sandbox is allowed by default), and many more. Hope this is adopted fast and we get more libraries for this or port of node libraries here.
Can you plz explain 'sandboxing'
I would love to see more videos about Deno. I love Node, but have found parts of it to be gross to use. I love your fast paced style of videos and would be thrilled to see more on this topic from you.
9/10 video. Very informative, but you didn’t say “syntactic sugar” once, which is what I came for.
Bro, you are the man! More awesome techniques please!
I would try it! Certainly makes things easier and straightforward
I can't ignore any video you post even if am not interested. For sure I will learn something new. You have unique conents.
Please do more videos about Deno! It looks really good
You know you produce quality consistently when I clicked like just by seeing the topic and channel
Your videos are amazing dude, keep it up :D
Great vid. Seems too niche right now. So many haven't even picked up TS for Node. Let's get there first. Personally, I use Go :)
Love the content and the animation. Nice job!
Secure by default!? PogChamp!! I definitely have to check this out.
I learned about Deno when I was searching electron alternative and felt it has the potential to replace node in some ways. It also ditched a lot of nodejs stuff like NPM(package.json), API methods, etc.
The point is that while it is still young, but it shows the ambition to correct a lot of things node is doing wrong (according to my "research"). Have fun learning new stuff.
Can't wait for an deno based electron/nwjs version [Deno Webkit maybe 🤔🤔🤔].
So, what Electron alternatives have you found and now recommend?
@@Yassir.A.P. tauri
Can you Explian what things nodejs does wrong?
YES! Finally! Deno will be huge in the future. Mark my words.
Just learned how to use node, and deno looks real good 👍🏼
Can’t wait to learn Deno and let it be one of my primary sources of pain/suffering in the future!
Looks really powerful with handy features
Oh my God, now that I see this in action, this looks so promising. Can't await it!
await deno()
Deno stands for: Destroy node.
btw, is it real? or just a joke
I Deno about that chief!
@@khotambakhromov absolutely real. and absolutely the future
Deno is node in reverse. no-de => de-no
Yes, also is the name from a Japanese manga about a dino
Yes! In my opinion, Deno is the future of js runtime!
If it supported NPM modules, those are what make node great
@@Wereld03 those are what make node hell. Too many people rely on dependencies for stupid reasons... left-pad is the best example. People should stop blindly using packages
@@Wereld03 No.
This guy makes learning awesome
Thank you bro 👍🏻 You are just awesome
I was looking forward for 1.0. I'll give it a try.
The only things that are keeping me on Node are NPM and the popularity of Node. I'm still a beginner developer and I rely a lot on modules, and even if Deno has a lot of good things, because the use of external package seems like a lot of complications for me, and because there are less people using it, I won't be able to find much help in case I struggle. And because of that, I'll be staying on Node for some more time.
PWA in 100 seconds
That'll happen soon :)
@@Fireship Yes!
It looks cool and the fact that the creator fixed some of the issues that plague Nodejs is great...but I'm not sure if it can gain enough traction since Node as a platform (with NPM) is so popular right now and there has been so much tooling and code created for it. People might be hesitant to migrate.
The thing is Node is not especial, what gives Node value is the fact that it can run JavaScript, meaning that most of the code already written in Node can be ported to Deno, so it's not like Deno begins at 0% percent, it can inherit everything Node already has
For example, I can use React directly on my Deno app without having to rewrite a single line of it
I've looked at deno and I'm in love
Dammn. Nice.
We just ditched Node over Go and Rust, but Deno might be nice for some prototyping.
I'm liking the look of it. :)
Dude this is AWESOME!!
10 years later, new product from Ryan Dahl: DONE, which solves the Deno and Node weaknesses.
Considering all the clutter in frontend world... i think this will be the game changer. Highly optimistic even if i do not use JS for the back-end.
I really loved the way you explained, so much so that I have linked it to my Quora Page . Keep creating.
I think the way that these new languages will become popular is for Senior devs looking to use something new at their companies start using a combination of Svelte and Deno. When they leave the company you will have a void and a need of someone who knows Svelte and Deno to take his place...if those new frameworks are adopted company wide then when people leave the company they take that knowledge and implant it into another company causing the need to spike
Please do a video on Q# and the Quantum Development Kit, I've been trying to wrap my head around it these last few days while in quarantine
Yes. I do think it’s the future of server side JavaScript.
I'm sorry but that server with for await is the most satisfying thing I've ever seen in my life
I have no idea about the technical obstacles not about alternatives, but using npm with deno would be awesome. I don't like the idea of creating all those npm packages again for deno, thought I understand that it would need quite some work to support npm.
I think that it will become one of the big programming frameworks / languages but wont overtake Node...Similar to how typescript wont overtake javascript or Svelte over the other frameworks... at least for a few years. On the front we will have React, Angular, Vue, Svelte...and on the backend will have Node/Express, Deno, Python,Php/Laravel, and C# as choices for the most popular
Typescript in 100 seconds pls
I really love your videos and I hope you Good luck ♥️
Deno sounds exciting, will use it if I get a chance. In the meantime NODEJS will do.
The line between front-end and back-end will become even more blurred. Once the code bases start to look the same. Which is a good thing IMO. But how does this affect existing frameworks like NestJS or Angular?
You bring exciting treats to us developer "dawgs"
This was awesome jeff
I guess this is the future and it will be massive!
Even though it is awesome, it can't beat node js because of the community support and maturity, plus companies will not migrate when existing tools already do the work without too much issues
But what about for new coders and new ventures? That's probably where the market is. It's where I'm starting.
No callback hell! No NPM ! Am Adopting this!
It seems really cool :D!
One guy will make a small web framework for
deno inspired by ruby and will be praised like a god yet again.
If node.js was such a big deal, Demo certainly will be. Looking forward to it.
I just wish Deno (or even Node) would implement something to make coding as zen as Python. What I mean is an UNDISPUTED set of defaults as style guide, much like you get with Black or autopep8 in Python. It would make tooling so easier to digest, no more infinite .dotfiles laying around your root.
Starting to look more and more like a real back-end language
I love this! I am so excited for deno (strong runtime types in typescript??!!)
This is going to be awesome
I'm an early adapter of this video xD
Got introduced first time with Deno. Looks little bit cooler than Node
Great content 👍
And that’s a good thing!
I can't wait for NEO-D
Perfect!
100% future of JS runtime! Deno = Node - bad parts + lots of new good parts!
A lot of hype one this one!
You are awesome dude 🔥🔥🔥🔥🔥🔥
Do you *have* to use the full package url including the version number everywhere you import the package? Is there no easy way to upgrade the package then, but you have to change countless files? I assume there is a way to do that differently with some sort of package.json equivalent?
that top level await is just, insane! holy crap I wish they also do this in node
Node can't be replaced by Deno..
@@codeaperture Why not reread what I just said. Did I say replace Node with Deno? Improve your reading comprehension mate!
@@codeaperture Who do you think you are not reading things and typing something irrelevant to op's submission.
Great vid you sound like john krasinski!!
This is amazin! I hate setting up typescript with nodejs.
Are there any performance advantages?
you can look at the benchmarks on the website: deno.land/benchmarks
0:38 Closing the laptop and going to gym!
very interested!!
Deno FTW!
Wow thanks for that!
It's awesome!
just like in your animation from NODE to DENO so indeed it will be the future and, end of the NODE as well, because it's from same author just like angular 1.x to angular 9,x from google :)
Kind of unrelated but is it worth learning Typescript for a NodeJs developer at all?
I find it very valuable for node dev ua-cam.com/video/ahCwqrYpIuM/v-deo.html
If you have some framework to work with that supports TypeScript (such as NestJS) it's good to know, having a type safe server-side API is great.
Typescript is awesome! I saw a comment I posted on that video a year ago where I said "Now I'll probably start using it more than JavaScript.", and I can confirm that I solely use typescript now :D
It's worth knowing and can be really useful for things like APIs, but the closer you get to the front end, less the trade-off is worth it IME considering that there is a tax to having ts in your stack. Everyone talks about the alleged benefits. No one talks about the trade-offs.
medium.com/javascript-scene/the-typescript-tax-132ff4cb175b
"Programmers know the benefits of everything and the tradeoffs of nothing" (Rich Hickey) www.reddit.com/r/programming/comments/3va6x0/programmers_know_the_benefits_of_everything_and/
It's the future! Once you start using it, there's no going back.
I'm not going to lie, this does look pretty sweet.
The Future of server side JS? Who knows? Probably not, maybe a future branch or a step towards it. It definitely looks interesting. Wold be also interesting to know what the downsides are.