Fireship · @fireship

Deno 2 is here… will it actually kill Node.js this time?

Uploaded September 24, 2024 · Length 4:16

Deno 2 is here… will it actually kill Node.js this time?

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.

  1. 0:00

    all the best programmers in the world

  2. 0:01

    love JavaScript while all the worst

  3. 0:03

    programmers in the world love to hate

  4. 0:05

    JavaScript I don't understand why that

  5. 0:06

    is because I'm a hater myself but today

  6. 0:08

    the JavaScript world just leveled up big

  7. 0:10

    time with the release of Dino 2 many

  8. 0:12

    people thought Dino was about to go

  9. 0:14

    extinct after it was hit by an asteroid

  10. 0:16

    named bun but now it's back with a

  11. 0:17

    vengeance and provides the most polished

  12. 0:19

    back-end JavaScript experience in the

  13. 0:21

    world not only is it now backwards

  14. 0:23

    compatible with no JS and npm but most

  15. 0:25

    importantly it's got a new logo that can

  16. 0:27

    dramatically improve the quality of your

  17. 0:29

    code in today's video will break down

  18. 0:31

    all of its new features and find out if

  19. 0:32

    it's finally time to take node.js behind

  20. 0:34

    the barn it is September 24th 2024 and

  21. 0:37

    you're watching the code report a lot of

  22. 0:39

    people make fun of JavaScript because it

  23. 0:40

    has multiple competi and server run

  24. 0:42

    times like node Dino and Bun when really

  25. 0:45

    it should have zero run times and only

  26. 0:46

    ever be used in the browser to trigger

  27. 0:48

    popup ads but competition is good and

  28. 0:50

    even languages like python have cpython

  29. 0:53

    piie and Russ Python and C++ has

  30. 0:55

    multiple compilers like GCC and clang

  31. 0:58

    for over a decade nodejs was the only

  32. 1:00

    game in town but then one day its

  33. 1:01

    original Creator Ryan do realized that

  34. 1:04

    it was alled up and decided to ship

  35. 1:06

    the letters around to create a new

  36. 1:07

    runtime called Dino the killer feature

  37. 1:09

    on the first iteration was typescript

  38. 1:11

    support out of the box you could create

  39. 1:13

    a TS file and run it with no TS config

  40. 1:15

    or compile step required but nowadays

  41. 1:17

    you can even do that in node.js so why

  42. 1:19

    didn't everybody just drop nodejs and

  43. 1:21

    switch to dino four years ago the

  44. 1:23

    problem is that it wasn't fully

  45. 1:24

    compatible with node.js and npm many of

  46. 1:27

    your favorite packages just wouldn't

  47. 1:28

    work that motivated a new runtime called

  48. 1:30

    bun to come out of nowhere and sees the

  49. 1:32

    opportunity to not only provide

  50. 1:34

    typescript support but also npm

  51. 1:36

    compatibility well now doo2 is thrown

  52. 1:38

    The Gauntlet down yet again by providing

  53. 1:39

    full backwards compatibility with node

  54. 1:41

    and npm like check this out I have a

  55. 1:43

    basic API written in expressjs in plain

  56. 1:46

    JavaScript one easy way to take

  57. 1:47

    advantage of Dino right away is to run

  58. 1:49

    lint which will have it scan my code and

  59. 1:51

    tell me what sucks about it you can

  60. 1:52

    forget about es lint or run Dino format

  61. 1:54

    and forget about prettier or better yet

  62. 1:56

    I can start writing better code by

  63. 1:58

    switching to typescript by simply

  64. 1:59

    changing in the file extension tots then