All language subtitles for 016 Single Page Application_en

af Afrikaans
sq Albanian
am Amharic
ar Arabic Download
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
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:01,270 --> 00:00:01,810 Welcome back. 2 00:00:02,200 --> 00:00:07,900 In the next video, we're going to start talking about something called Life Cycle Methods and APIs. 3 00:00:08,860 --> 00:00:13,840 Now, in order to prepare for that lesson, I want to go over something that we already saw that is 4 00:00:13,840 --> 00:00:18,100 this component class app extends component. 5 00:00:19,750 --> 00:00:27,220 Now, what does that really mean component, if we look here, is part of the REACT Library and we're 6 00:00:27,220 --> 00:00:33,520 using destruction structuring here, but if I didn't include it like this, I could still use it using 7 00:00:33,520 --> 00:00:40,660 the react dot component because component well, is a property on react that we can use. 8 00:00:41,230 --> 00:00:48,130 And when we do something like class app extends Riak component, what we're doing is saying, hey, 9 00:00:48,520 --> 00:00:54,730 I want whatever functionality that this really component that was already built into the library by 10 00:00:54,730 --> 00:00:55,210 somebody. 11 00:00:55,420 --> 00:00:58,190 I want the functionality and I'm going to add on to it. 12 00:00:58,810 --> 00:01:04,810 So, for example, this render method comes built in with Riak component. 13 00:01:05,930 --> 00:01:14,810 And this rehab component gives us some batteries included options to use in our component so that we 14 00:01:14,810 --> 00:01:20,680 don't have to constantly repeat ourselves, we use something that really says, hey, this is a component 15 00:01:20,690 --> 00:01:24,170 and we just tack on some specific functionality to it. 16 00:01:24,650 --> 00:01:30,950 As you'll see, we'll learn about cycle methods and how these components have some important methods 17 00:01:30,950 --> 00:01:39,770 already on them, such as if I type in system here, you'll see that I have some methods that comes 18 00:01:39,770 --> 00:01:42,230 from the React Daudt component lifecycle. 19 00:01:43,220 --> 00:01:44,620 But we'll get to that shortly. 20 00:01:45,510 --> 00:01:48,840 Another thing I want to talk about is this idea of an API. 21 00:01:51,190 --> 00:01:56,610 Remember how we talked about the birth of the single page application, how initially all we had to 22 00:01:56,610 --> 00:02:02,700 do with a normal Web page was we visited a link and we got the Schimel JavaScript and successful. 23 00:02:02,910 --> 00:02:06,230 When we clicked on another link, we went to a different page. 24 00:02:06,240 --> 00:02:09,600 So we got a whole new HTML JavaScript access file. 25 00:02:10,590 --> 00:02:17,070 However, with single page applications, we now have this idea of communicating with the back end initially 26 00:02:17,490 --> 00:02:25,470 where we get a tiny e-mail page, remember, with our just idea of route where we fill in our component 27 00:02:26,400 --> 00:02:32,610 and then we have this massive JavaScript file, or at least bigger than he usually was with our REACT 28 00:02:32,610 --> 00:02:36,930 library, with our components, with any of our logic. 29 00:02:37,380 --> 00:02:42,330 So now, instead of having to communicate back and forth with the server, if I click on something and 30 00:02:42,330 --> 00:02:45,480 let's say visit a different part of the page, I don't have to go back. 31 00:02:45,480 --> 00:02:51,180 I can just have JavaScript or react, say, hey, just re render the DOM with something else. 32 00:02:52,020 --> 00:02:59,210 So now with a single page application, instead of requesting a page, it's turned more into requesting 33 00:02:59,220 --> 00:02:59,900 for data. 34 00:03:00,660 --> 00:03:06,570 And this is when we have the ability to, let's say, communicate with outside servers, maybe servers 35 00:03:06,570 --> 00:03:07,650 that we don't control. 36 00:03:08,730 --> 00:03:17,220 For example, in our big project, we're going to talk to the Google firebase database, we might talk 37 00:03:17,220 --> 00:03:26,190 to some different API endpoints so that now we can communicate with different APIs back and forth and 38 00:03:26,190 --> 00:03:29,310 using JavaScript, just receive the data. 39 00:03:31,440 --> 00:03:38,940 For example, we saw that this Jason Placeholder website, by entering into this website, all I get 40 00:03:38,940 --> 00:03:41,010 is, well, not an e-mail page, right? 41 00:03:41,250 --> 00:03:46,500 All I get is this data that is formatted in what we call JSON. 42 00:03:46,740 --> 00:03:53,420 So this JSON data can be converted into, let's say, a JavaScript object that we can use. 43 00:03:53,730 --> 00:04:02,400 But all this does is provide us an API, a way for us to access information from, well, this server. 44 00:04:03,350 --> 00:04:11,000 So they are now single page applications instead of just rendering, HTML can use this data to perhaps 45 00:04:11,000 --> 00:04:14,750 display different monsters, different to user information. 46 00:04:15,020 --> 00:04:22,820 And as we'll see, it will allow us to do interesting things like sign in, sign out, add items to 47 00:04:22,820 --> 00:04:25,760 the shopping cart, and we'll explore that idea throughout the course. 48 00:04:27,460 --> 00:04:32,320 And by the way, there's a way for you to actually check this, if we open up our developer tools and 49 00:04:32,320 --> 00:04:38,110 we go to network and I refresh the page here, you'll see that I have this user's. 50 00:04:39,530 --> 00:04:46,190 This users document, if I click on it and if I go to response, we see that this is the response that 51 00:04:46,190 --> 00:04:46,670 we get. 52 00:04:48,520 --> 00:04:54,790 So as you start to build larger and larger applications, what you'll find is that you'll start talking 53 00:04:54,790 --> 00:04:58,900 to APIs and trying to get different data for your application. 54 00:04:59,770 --> 00:05:06,460 And these end points or servers that we speak to can be third party servers like Google servers, or 55 00:05:06,460 --> 00:05:10,070 they can be your own server where you perhaps have your own database. 56 00:05:10,480 --> 00:05:13,780 Now, that's something that we're exploring a little bit more later on. 57 00:05:14,380 --> 00:05:20,380 But the key thing is that the way we build applications now is very dynamic. 58 00:05:21,670 --> 00:05:25,850 Most of the time, we don't have to code all the information into these files. 59 00:05:26,010 --> 00:05:32,460 Instead, when a user opens something, we are always communicating with outside servers. 60 00:05:32,860 --> 00:05:35,170 So we're going to start structuring our app this way. 61 00:05:36,310 --> 00:05:36,990 Let's keep going. 6675

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