Fireship · @fireship
JavaScript for the Haters
Uploaded November 24, 2022 · Length 2:50
Summary
A sarcastic rant about the flaws and quirks of the JavaScript programming language, despite its widespread use and popularity.
- javascript
- programming language
- sarcastic rant
- web development
- nodejs
- react native
- expressjs
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:01
JavaScript an embarrassing toy language
- 0:04
used exclusively to build things it's
- 0:06
not supposed to it was created by
- 0:08
Brendan Ike in 1995 who was given
- 0:10
requirements to build a language like
- 0:11
Java but for words it only took him
- 0:13
seven days to execute flawlessly it
- 0:16
became an overnight dumpster fire but
- 0:18
really hit the fan in 2005 when
- 0:20
Ryan Dahl made the Epic mistake of
- 0:22
bringing JavaScript to the server with
- 0:23
node.js just like Alfred Nobel and
- 0:25
dynamite he would go on to apologize for
- 0:27
his invention many years later and it's
- 0:29
my fault and I'm very sorry the language
- 0:31
is designed for only one use case to
- 0:34
annoy people with browser pop-ups but
- 0:36
today it's used to build memory hogging
- 0:38
desktop apps with electron janky mobile
- 0:40
apps with react native and unreliable
- 0:42
apis with express.js no matter what
- 0:44
you're trying to build there are
- 0:45
hundreds of different game-changing
- 0:46
next-gen libraries to get the job done
- 0:48
that's because whenever a JavaScript
- 0:50
developer encounters a problem it will
- 0:52
instinctively create a brand new
- 0:53
framework and upload it to GitHub with a
- 0:55
bunch of emojis in the readme in fact
- 0:56
there are so many npm packages that Al
- 0:58
Gore is now predicting the Arctic will
- 1:00
be ice free by 2013 you have stolen my
- 1:03
dreams in my childhood unlike languages
- 1:05
people actually like JavaScript doesn't
- 1:07
have a mascot but they are working with
- 1:09
David Cronenberg to design one it's a
- 1:11
Loosely typed language and by that I
- 1:13
mean completely detached from reality
- 1:14
when you add an array to an object
- 1:16
obviously it returns a string that says
- 1:18
object object now switch the order of
- 1:20
the operands and predictably it returns
- 1:22
zero if you want a good laugh for
- 1:24
yourself try adding two objects together
- 1:26
you'll get object object object object
- 1:28
now with that knowledge what do you
- 1:29
think two arrays will equal obviously an
- 1:32
empty string that makes total sense
- 1:33
because the number zero is equivalent to
- 1:35
an empty array and also equivalent to a
- 1:37
string of zero and that means the only
- 1:39
possible same conclusion is that a
- 1:41
string of zero is also equivalent to an
- 1:43
empty array but amazingly it's not
- 1:45
everybody knows you never go full retire
- 1:47
it got this way because Netscape did a
- 1:48
focus group in the 90s with some
- 1:50
homeless web developers they found on
- 1:51
the street who thought two plus two
- 1:53
should equal 22 and of course that's why
- 1:55
2 minus two equals zero when a language
- 1:57
is this bad and this popular at the same
- 1:59
time it creates an ecosystem where


