Fireship · @fireship

Big projects are ditching TypeScript… why?

Uploaded September 7, 2023 · Length 3:38

Big projects are ditching TypeScript… why?

Summary

typescript adoption declining as big projects like svelte and turbo switch to vanilla javascript.

  • typescript
  • javascript
  • svelte
  • turbo
  • typescript adoption
  • vanilla javascript

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    it is September 7th 2023 and you are

  2. 0:03

    watching the code report it many years

  3. 0:04

    ago in 2017 legendary JavaScript user

  4. 0:07

    Kent C Dodds said I don't use typescript

  5. 0:09

    so I don't ever plan on supporting it in

  6. 0:11

    2019 he goes on to say you are

  7. 0:13

    impassioned love of typescript is sort

  8. 0:15

    of freaking me out and finally in 2023

  9. 0:17

    comes capitulation typescript is one and

  10. 0:19

    it's only a matter of time you're using

  11. 0:21

    it whether you like it or not but this

  12. 0:23

    is the sign of a good developer you have

  13. 0:24

    to be open-minded and willing to adapt

  14. 0:26

    to new tools and sometimes tools you

  15. 0:28

    don't even like but the big question

  16. 0:29

    here is did typescript really win

  17. 0:31

    because recently the turns have started

  18. 0:33

    to table a bunch of big open source

  19. 0:35

    projects have decided to ditch

  20. 0:36

    typescript in favor of vanilla

  21. 0:38

    JavaScript to understand the shocking

  22. 0:40

    turn of events we'll need to go back to

  23. 0:42

    the very beginning in 2012 when

  24. 0:44

    typescript was first released by

  25. 0:45

    Microsoft nobody really cared at first

  26. 0:47

    but then a few years later it was

  27. 0:49

    adopted by the angular 2 framework which

  28. 0:51

    everybody thought was crazy but here's

  29. 0:53

    the thing first they think you're crazy

  30. 0:54

    then they fight you then you change the

  31. 0:56

    world or you go to jail by the early

  32. 0:58

    2020s typescript was everywhere where at

  33. 1:00

    which point most of its haters had been

  34. 1:02

    converted into True Believers but now

  35. 1:03

    right as we're about to reach the

  36. 1:05

    Glorious climax of typescript saturation

  37. 1:07

    you've got big libraries like svelte

  38. 1:09

    drizzle and turbo deciding to ditch

  39. 1:11

    typescript from their code bases to be

  40. 1:13

    clear that just means that they're not

  41. 1:14

    going to use typescript When developing

  42. 1:16

    these libraries but as an end user in a

  43. 1:18

    framework like svelt for example you're

  44. 1:19

    still able to use typescript just like

  45. 1:21

    normal but how could anyone possibly go

  46. 1:23

    back to vanilla JS after using

  47. 1:24

    typescript did they not remember runtime

  48. 1:26

    errors like cannot read properties of

  49. 1:28

    undefined did they not remember how hard

  50. 1:29

    it is to refactor a code base where you

  51. 1:31

    have no idea what anything is well these

  52. 1:33

    people are a lot smarter than I am so

  53. 1:34

    let's first look at this article from

  54. 1:36

    dhh that creator of Ruby on Rails who's

  55. 1:38

    getting rid of typescript and turbo

  56. 1:40

    version 8. the main reason they're

  57. 1:41

    getting rid of it is not because of the

  58. 1:42

    compile step but rather because it

  59. 1:44

    pollutes the code with quote type

  60. 1:46

    gymnastics and there's a lot of Truth to

  61. 1:48

    that especially when developing a

  62. 1:49

    library I'm working on a library myself

  63. 1:51

    called svelt fire and as you can see in

  64. 1:53

    the code here I have to do my own type

  65. 1:55

    gymnastics with typescript just to get

  66. 1:57

    rid of some red squiggly lines in the

  67. 1:58

    IDE now I could simply place this type