Fireship · @fireship
Deno 2 is here… will it actually kill Node.js this time?
Uploaded September 24, 2024 · Length 4:16
Summary
Fireship reviews Deno 2, comparing it to Node.js, discussing its new features, and potential drawbacks.
- deno 2
- node js
- javascript runtime
- typescript support
- npm compatibility
- javascript development
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
all the best programmers in the world
- 0:01
love JavaScript while all the worst
- 0:03
programmers in the world love to hate
- 0:05
JavaScript I don't understand why that
- 0:06
is because I'm a hater myself but today
- 0:08
the JavaScript world just leveled up big
- 0:10
time with the release of Dino 2 many
- 0:12
people thought Dino was about to go
- 0:14
extinct after it was hit by an asteroid
- 0:16
named bun but now it's back with a
- 0:17
vengeance and provides the most polished
- 0:19
back-end JavaScript experience in the
- 0:21
world not only is it now backwards
- 0:23
compatible with no JS and npm but most
- 0:25
importantly it's got a new logo that can
- 0:27
dramatically improve the quality of your
- 0:29
code in today's video will break down
- 0:31
all of its new features and find out if
- 0:32
it's finally time to take node.js behind
- 0:34
the barn it is September 24th 2024 and
- 0:37
you're watching the code report a lot of
- 0:39
people make fun of JavaScript because it
- 0:40
has multiple competi and server run
- 0:42
times like node Dino and Bun when really
- 0:45
it should have zero run times and only
- 0:46
ever be used in the browser to trigger
- 0:48
popup ads but competition is good and
- 0:50
even languages like python have cpython
- 0:53
piie and Russ Python and C++ has
- 0:55
multiple compilers like GCC and clang
- 0:58
for over a decade nodejs was the only
- 1:00
game in town but then one day its
- 1:01
original Creator Ryan do realized that
- 1:04
it was alled up and decided to ship
- 1:06
the letters around to create a new
- 1:07
runtime called Dino the killer feature
- 1:09
on the first iteration was typescript
- 1:11
support out of the box you could create
- 1:13
a TS file and run it with no TS config
- 1:15
or compile step required but nowadays
- 1:17
you can even do that in node.js so why
- 1:19
didn't everybody just drop nodejs and
- 1:21
switch to dino four years ago the
- 1:23
problem is that it wasn't fully
- 1:24
compatible with node.js and npm many of
- 1:27
your favorite packages just wouldn't
- 1:28
work that motivated a new runtime called
- 1:30
bun to come out of nowhere and sees the
- 1:32
opportunity to not only provide
- 1:34
typescript support but also npm
- 1:36
compatibility well now doo2 is thrown
- 1:38
The Gauntlet down yet again by providing
- 1:39
full backwards compatibility with node
- 1:41
and npm like check this out I have a
- 1:43
basic API written in expressjs in plain
- 1:46
JavaScript one easy way to take
- 1:47
advantage of Dino right away is to run
- 1:49
lint which will have it scan my code and
- 1:51
tell me what sucks about it you can
- 1:52
forget about es lint or run Dino format
- 1:54
and forget about prettier or better yet
- 1:56
I can start writing better code by
- 1:58
switching to typescript by simply
- 1:59
changing in the file extension tots then


