Fireship · @fireship
Big projects are ditching TypeScript… why?
Uploaded September 7, 2023 · Length 3:38
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.
- 0:00
it is September 7th 2023 and you are
- 0:03
watching the code report it many years
- 0:04
ago in 2017 legendary JavaScript user
- 0:07
Kent C Dodds said I don't use typescript
- 0:09
so I don't ever plan on supporting it in
- 0:11
2019 he goes on to say you are
- 0:13
impassioned love of typescript is sort
- 0:15
of freaking me out and finally in 2023
- 0:17
comes capitulation typescript is one and
- 0:19
it's only a matter of time you're using
- 0:21
it whether you like it or not but this
- 0:23
is the sign of a good developer you have
- 0:24
to be open-minded and willing to adapt
- 0:26
to new tools and sometimes tools you
- 0:28
don't even like but the big question
- 0:29
here is did typescript really win
- 0:31
because recently the turns have started
- 0:33
to table a bunch of big open source
- 0:35
projects have decided to ditch
- 0:36
typescript in favor of vanilla
- 0:38
JavaScript to understand the shocking
- 0:40
turn of events we'll need to go back to
- 0:42
the very beginning in 2012 when
- 0:44
typescript was first released by
- 0:45
Microsoft nobody really cared at first
- 0:47
but then a few years later it was
- 0:49
adopted by the angular 2 framework which
- 0:51
everybody thought was crazy but here's
- 0:53
the thing first they think you're crazy
- 0:54
then they fight you then you change the
- 0:56
world or you go to jail by the early
- 0:58
2020s typescript was everywhere where at
- 1:00
which point most of its haters had been
- 1:02
converted into True Believers but now
- 1:03
right as we're about to reach the
- 1:05
Glorious climax of typescript saturation
- 1:07
you've got big libraries like svelte
- 1:09
drizzle and turbo deciding to ditch
- 1:11
typescript from their code bases to be
- 1:13
clear that just means that they're not
- 1:14
going to use typescript When developing
- 1:16
these libraries but as an end user in a
- 1:18
framework like svelt for example you're
- 1:19
still able to use typescript just like
- 1:21
normal but how could anyone possibly go
- 1:23
back to vanilla JS after using
- 1:24
typescript did they not remember runtime
- 1:26
errors like cannot read properties of
- 1:28
undefined did they not remember how hard
- 1:29
it is to refactor a code base where you
- 1:31
have no idea what anything is well these
- 1:33
people are a lot smarter than I am so
- 1:34
let's first look at this article from
- 1:36
dhh that creator of Ruby on Rails who's
- 1:38
getting rid of typescript and turbo
- 1:40
version 8. the main reason they're
- 1:41
getting rid of it is not because of the
- 1:42
compile step but rather because it
- 1:44
pollutes the code with quote type
- 1:46
gymnastics and there's a lot of Truth to
- 1:48
that especially when developing a
- 1:49
library I'm working on a library myself
- 1:51
called svelt fire and as you can see in
- 1:53
the code here I have to do my own type
- 1:55
gymnastics with typescript just to get
- 1:57
rid of some red squiggly lines in the
- 1:58
IDE now I could simply place this type


