All language subtitles for 4. Node.js - How We Got Here

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian Download
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,580 --> 00:00:02,140 Hello. 2 00:00:02,290 --> 00:00:02,740 All right. 3 00:00:03,220 --> 00:00:09,280 Now, before we dive into the code, before we start building node applications, we need to talk about 4 00:00:09,280 --> 00:00:11,440 how Node was born. 5 00:00:12,430 --> 00:00:19,120 But in order to talk about how Node got started, why it's so big, why it's everywhere and why you 6 00:00:19,120 --> 00:00:19,870 need to learn it. 7 00:00:20,350 --> 00:00:27,970 Well, we need to ask this question How do you run JavaScript, pause and think about this? 8 00:00:28,360 --> 00:00:30,010 How do you run JavaScript? 9 00:00:30,490 --> 00:00:31,240 If I told you. 10 00:00:31,360 --> 00:00:34,330 Hey, run this piece of JavaScript code for me. 11 00:00:34,780 --> 00:00:35,500 How would you do it? 12 00:00:36,250 --> 00:00:39,760 Would you be able to run JavaScript on any computer? 13 00:00:39,850 --> 00:00:41,530 Let's say you bought a brand new computer. 14 00:00:41,890 --> 00:00:43,630 Can you run JavaScript on it? 15 00:00:44,530 --> 00:00:50,050 Well, for some of you, your first answer might be, well, yeah, I can run it in the browser. 16 00:00:51,490 --> 00:00:57,040 If we go to our browser, let's say you're using Google Chrome, Firefox, whatever, you can open up 17 00:00:57,040 --> 00:01:01,780 the developer tools and you can run JavaScript in your console, right? 18 00:01:02,730 --> 00:01:08,430 But the thing that's running JavaScript for you here is now your computer. 19 00:01:08,520 --> 00:01:14,790 I mean, yes, it's your computer, but it's the browser that you downloaded or came pre-installed on 20 00:01:14,790 --> 00:01:16,260 your computer when you bought it. 21 00:01:16,680 --> 00:01:23,430 That allows us to run JavaScript if we had a fresh computer with nothing installed. 22 00:01:23,730 --> 00:01:27,600 Well, JavaScript would be meaningless to the computer, right? 23 00:01:28,990 --> 00:01:36,010 I mean, that's what programming is programming such as using a programming language like JavaScript 24 00:01:36,400 --> 00:01:43,570 is us as programmers writing instructions so that a computer or a machine follows those instructions 25 00:01:44,080 --> 00:01:49,870 in the way a browser or we're able to run JavaScript is by writing JavaScript. 26 00:01:50,080 --> 00:01:53,020 And then we feed it into something like this. 27 00:01:53,470 --> 00:01:55,600 Now what this is in this eight? 28 00:01:55,750 --> 00:01:58,300 Well, we call that a JavaScript engine. 29 00:01:58,390 --> 00:01:59,920 We're going to get back to that shortly. 30 00:02:00,310 --> 00:02:06,370 But we essentially write instructions so that our machines do something with those instructions. 31 00:02:06,820 --> 00:02:14,740 In our case, maybe have interactivity on a website, but in order for us to be able to run JavaScript. 32 00:02:15,860 --> 00:02:17,690 We need this thing right here. 33 00:02:17,960 --> 00:02:22,100 We need a way for a computer to understand JavaScript. 34 00:02:22,950 --> 00:02:25,350 And this is what a JavaScript engine does. 35 00:02:26,720 --> 00:02:31,940 When we download, let's say, Google Chrome, it comes in with a built in JavaScript engine. 36 00:02:32,240 --> 00:02:36,710 This JavaScript engine takes whatever we write over here. 37 00:02:41,040 --> 00:02:44,550 And understands it and runs the code for us. 38 00:02:45,300 --> 00:02:48,660 But can we run JavaScript without a browser? 39 00:02:49,350 --> 00:02:52,170 How would you run JavaScript outside of a browser? 40 00:02:53,330 --> 00:03:01,460 I mean, we just talked about how we need this piece, this JavaScript engine, in order for a computer 41 00:03:01,670 --> 00:03:04,370 to understand the instructions that we write. 42 00:03:05,060 --> 00:03:09,500 So how can we use this engine but without a browser? 43 00:03:10,160 --> 00:03:11,630 Is that even possible? 44 00:03:12,350 --> 00:03:14,330 Well, let's do a quick Google search here. 45 00:03:14,660 --> 00:03:21,650 If I type in JavaScript engines, maybe I can use a JavaScript engine on my own instead of the Chrome 46 00:03:21,650 --> 00:03:22,060 browser. 47 00:03:22,070 --> 00:03:22,280 One. 48 00:03:22,610 --> 00:03:28,580 Well, as you can see here, a JavaScript engine is a computer program that executes JavaScript code. 49 00:03:28,670 --> 00:03:31,370 It reads our job script and it executes. 50 00:03:32,180 --> 00:03:37,640 So if I open up JavaScript engines and Wikipedia, are there multiple JavaScript engines? 51 00:03:38,570 --> 00:03:39,800 Well, yeah, there are. 52 00:03:40,340 --> 00:03:44,240 For example, Google Chrome uses something called the V8 JavaScript Engine. 53 00:03:44,990 --> 00:03:52,220 Spider monkey is used by the Firefox browser, and then there's other things like JavaScript core that 54 00:03:52,220 --> 00:03:55,340 is the one used by Apple in its Safari browser. 55 00:03:56,180 --> 00:04:01,430 So there's different JavaScript engines that can read our JavaScript code, but hold on there. 56 00:04:02,670 --> 00:04:09,750 We didn't really answer the question, are we able to run JavaScript outside of the browser and this 57 00:04:09,750 --> 00:04:11,010 is where node comes in? 58 00:04:11,190 --> 00:04:19,200 But before we get into node, we have to talk about some of the key moments that led to note because 59 00:04:19,680 --> 00:04:25,590 these four key moments are what caused the world to take notice of Node. 60 00:04:26,430 --> 00:04:31,530 Because up until now, we know that a browser runs a JavaScript engine. 61 00:04:32,070 --> 00:04:33,930 But what if we don't have a browser? 62 00:04:33,930 --> 00:04:36,480 We wanted to run JavaScript on our computers. 63 00:04:36,810 --> 00:04:38,160 We need to solve that problem. 64 00:04:38,940 --> 00:04:42,000 Well, let's take a history lesson 1995. 65 00:04:42,420 --> 00:04:47,970 That's a big year, because that's the year that the Netscape browser introduced to us JavaScript. 66 00:04:48,240 --> 00:04:53,730 Brendan, like that used to work there, essentially developed a new programming language JavaScript 67 00:04:53,760 --> 00:04:59,220 that allows us to manipulate and program things on the web. 68 00:05:00,150 --> 00:05:06,210 Now, in 1996, Netscape had a great idea with their version three of their Netscape Navigator. 69 00:05:07,140 --> 00:05:14,610 They introduced something called Netscape Livewire, a way to create dynamic pages using server side 70 00:05:14,730 --> 00:05:15,390 JavaScript. 71 00:05:15,870 --> 00:05:18,870 Hey, we've heard that term before, as a matter of fact. 72 00:05:19,740 --> 00:05:26,580 We can even see the press release when they announced it in 1996 with the release of 3.0 version Netscape 73 00:05:26,580 --> 00:05:27,150 web servers. 74 00:05:27,360 --> 00:05:32,790 Netscape Wire is fully integrated into web servers, blah blah blah blah blah. 75 00:05:34,000 --> 00:05:37,300 Allows us to do essentially server side JavaScript. 76 00:05:38,480 --> 00:05:39,560 But you know what? 77 00:05:39,980 --> 00:05:45,500 Let's forget about life wire because it was ahead of its time and it just didn't really work anyway. 78 00:05:45,620 --> 00:05:46,760 Everything went along. 79 00:05:46,760 --> 00:05:52,670 JavaScript was on the front end was on the browser and then 2008 rolls around. 80 00:05:52,940 --> 00:05:56,780 And this was a critical period. 81 00:05:57,290 --> 00:05:57,770 Why? 82 00:05:58,130 --> 00:06:03,290 Because Google announced something new and that was the Chrome browser. 83 00:06:03,590 --> 00:06:09,260 And this symbol that you see here that you've seen before is what was critical. 84 00:06:09,680 --> 00:06:15,740 It was called the V8 engine, a new JavaScript engine you see in 2008. 85 00:06:16,010 --> 00:06:17,940 It was a pivotal moment for the web. 86 00:06:18,590 --> 00:06:26,510 The idea of Web 2.0 started being talked about the idea of having websites like Flickr like Gmail that 87 00:06:26,510 --> 00:06:27,530 were interactive. 88 00:06:28,040 --> 00:06:32,870 It showed the world that modern experiences on the web could happen. 89 00:06:33,200 --> 00:06:38,390 It's more than just pages, just a simple access and a little bit of JavaScript. 90 00:06:39,080 --> 00:06:45,890 When Chrome released their new browser, it allowed JavaScript to run really fast, really performant. 91 00:06:46,670 --> 00:06:54,140 It allowed users to have really good experiences on websites because it was such a good JavaScript engine. 92 00:06:55,060 --> 00:06:58,900 As a matter of fact, it's the reason that Chrome browsers are so popular now. 93 00:06:59,560 --> 00:07:06,880 But because we can now run JavaScript a lot faster on the web and the V8 engine was so powerful the 94 00:07:06,880 --> 00:07:08,750 concept that didn't really work. 95 00:07:08,770 --> 00:07:11,050 Back in 1986 with Livewire. 96 00:07:11,290 --> 00:07:17,040 Well, a year later, in 2009, Ryan Dahl created no jobs. 97 00:07:17,710 --> 00:07:25,090 The idea was simple Can we take this V8 engine that runs JavaScript really, really fast on the browser 98 00:07:25,360 --> 00:07:27,850 and just run it outside of the browser? 99 00:07:28,570 --> 00:07:32,080 Because that's the question we're trying to solve, right? 100 00:07:32,620 --> 00:07:35,890 We started the course with How do you run JavaScript? 101 00:07:36,220 --> 00:07:38,800 And up until now, we can run it on the browser. 102 00:07:39,040 --> 00:07:42,910 But if I told you to run it on your computer without a browser. 103 00:07:43,450 --> 00:07:47,110 Well before Node.js, that would have been a little bit tricky. 104 00:07:47,770 --> 00:07:55,390 As a matter of fact, if you want, you can even go on YouTube, search for Grindel original Node.js 105 00:07:55,390 --> 00:08:02,290 presentation and still see the presentation where he released Node JS to the world in 2009. 106 00:08:02,830 --> 00:08:06,100 It's a really interesting talk and a bit of a history lesson. 107 00:08:07,140 --> 00:08:13,710 Now, Ryan Dow had a bit of luck on his side because there were more and more JavaScript developers 108 00:08:13,710 --> 00:08:16,270 in the world working on web applications. 109 00:08:16,830 --> 00:08:25,420 But we now have the ability with note to say, Hey, can we run JavaScript outside of the browser? 110 00:08:25,440 --> 00:08:33,930 Maybe we can do what Python, PHP or any other programming language can do, which is run code on things 111 00:08:33,930 --> 00:08:34,860 like servers. 112 00:08:35,490 --> 00:08:42,330 And because there were so many JavaScript developers already, Node was able to create this idea of 113 00:08:42,330 --> 00:08:43,710 a full stack developer. 114 00:08:43,980 --> 00:08:49,350 A full stack developer is somebody that can work on the web, but also in the world of, let's say, 115 00:08:49,350 --> 00:08:52,470 backend back end servers, microservices. 116 00:08:53,660 --> 00:09:01,760 And there you have it, Node was born in 2009, and now, well, it's a big player in the programming 117 00:09:01,760 --> 00:09:02,090 world. 118 00:09:02,690 --> 00:09:10,280 And if you see here, we see that A.j.'s is a JavaScript runtime built on Chrome 8's V8 JavaScript engine. 119 00:09:10,880 --> 00:09:11,180 All right. 120 00:09:11,240 --> 00:09:15,980 We know what Chrome's V8 JavaScript engine is, but what is a runtime? 121 00:09:16,600 --> 00:09:18,400 Let's learn about that in the next video. 12028

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.