All language subtitles for 18 - Imperative vs Declarative English

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
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
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (SoranĂ®)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,610 --> 00:00:04,400 ‫A declarative language, what are we talking about? 2 00:00:04,630 --> 00:00:07,080 ‫I can already hear you saying the what? 3 00:00:07,900 --> 00:00:13,980 ‫Well, to put it into simple terms, a declarative language is a language where we say, what will happen? 4 00:00:14,910 --> 00:00:17,020 ‫OK, I can see the gears spinning. 5 00:00:17,020 --> 00:00:17,340 ‫Right. 6 00:00:18,010 --> 00:00:21,550 ‫What will happen when we look at our school query? 7 00:00:21,790 --> 00:00:24,490 ‫We said select star from users. 8 00:00:24,490 --> 00:00:26,920 ‫We know we want to get data back. 9 00:00:27,490 --> 00:00:28,870 ‫We're saying what will happen? 10 00:00:29,170 --> 00:00:30,820 ‫Select star from users. 11 00:00:31,420 --> 00:00:35,740 ‫You're going to get feedback from users, but we have no idea how that's going to happen. 12 00:00:36,430 --> 00:00:38,440 ‫That's why we call it declarative. 13 00:00:38,950 --> 00:00:46,060 ‫We are simply stating something that is going to have on the counter end of that, we have what we call 14 00:00:46,420 --> 00:00:52,060 ‫imperative programming and imperative programming says how it will happen. 15 00:00:52,570 --> 00:00:53,860 ‫So what do we mean by that? 16 00:00:54,580 --> 00:00:57,850 ‫We just define that declarative, declarative meaning. 17 00:00:57,880 --> 00:01:01,960 ‫We see what will happen, but we have no idea how it's happening. 18 00:01:02,320 --> 00:01:05,650 ‫And on the other end, the imperative is saying how it will happen. 19 00:01:06,220 --> 00:01:13,270 ‫Imperative programming is where you go line by line by line, saying do this, do that, do that, go 20 00:01:13,270 --> 00:01:15,580 ‫read from over there in declarative. 21 00:01:15,580 --> 00:01:17,440 ‫You just say, give me this. 22 00:01:17,830 --> 00:01:19,210 ‫Let's break that down a bit more. 23 00:01:20,060 --> 00:01:26,600 ‫If we were to look at this, the man asking for a ham sandwich and getting one without having to do 24 00:01:26,600 --> 00:01:30,310 ‫anything, well, that's equivalent to declarative programming, right? 25 00:01:30,740 --> 00:01:32,990 ‫You say I want something. 26 00:01:33,230 --> 00:01:34,700 ‫This is what I want back. 27 00:01:34,730 --> 00:01:36,260 ‫This is what should happen. 28 00:01:36,920 --> 00:01:40,640 ‫And you get it back and however it happens is irrelevant to you. 29 00:01:40,640 --> 00:01:41,900 ‫It happens in a black box. 30 00:01:41,900 --> 00:01:43,970 ‫It happens somewhere behind the scenes. 31 00:01:44,330 --> 00:01:48,290 ‫And you don't know anything about what goes on there in an imperative programming. 32 00:01:48,470 --> 00:01:49,760 ‫You are the bandleader. 33 00:01:49,940 --> 00:01:54,740 ‫You are the one saying, let's do this, then let's do that, and then we will have an outcome. 34 00:01:55,370 --> 00:02:00,200 ‫So in the case of a ham sandwich, you are the one saying sliced the bread, slice the ham and putting 35 00:02:00,200 --> 00:02:01,340 ‫together the sandwich. 36 00:02:01,730 --> 00:02:07,340 ‫And if we were to look at some examples of declarative versus imperative programming, what we would 37 00:02:07,340 --> 00:02:09,500 ‫look at is, for instance, school. 38 00:02:09,680 --> 00:02:10,100 ‫Right. 39 00:02:10,100 --> 00:02:11,210 ‫We've already defined that. 40 00:02:11,210 --> 00:02:13,850 ‫That's on the declarative and select star from users. 41 00:02:14,000 --> 00:02:15,890 ‫Very clear, very straightforward. 42 00:02:16,160 --> 00:02:18,330 ‫You know that you're going to get user data back. 43 00:02:18,360 --> 00:02:24,080 ‫And Java, an old programming language that is still relevant today that some of you may have heard 44 00:02:24,080 --> 00:02:30,110 ‫of is a programming language where traditionally you would define everything that needs to happen. 45 00:02:30,110 --> 00:02:35,630 ‫You would define where you need to read from a hard drive where all of the data is. 46 00:02:35,630 --> 00:02:39,710 ‫And you would do all of the actions to get the data on the opposite end. 47 00:02:39,710 --> 00:02:43,160 ‫Something like Python can be both declarative and imperative. 48 00:02:43,190 --> 00:02:44,360 ‫You can do both with it. 49 00:02:47,230 --> 00:02:52,990 ‫We've created this clear divide and we've seen what declarative can do versus what imperative can do, 50 00:02:52,990 --> 00:02:55,780 ‫and it's more simple than it looks, right? 51 00:02:56,470 --> 00:03:01,930 ‫Declarative is very powerful because of its simplicity, because you don't have to worry about what's 52 00:03:01,930 --> 00:03:03,430 ‫going to happen behind the scenes. 53 00:03:03,430 --> 00:03:06,580 ‫And you can just say, hey, get me this, hey, get me that. 54 00:03:06,610 --> 00:03:09,820 ‫You can be more productive versus imperative. 55 00:03:10,000 --> 00:03:11,590 ‫You have more flexibility. 56 00:03:11,800 --> 00:03:13,390 ‫You have more power. 57 00:03:13,580 --> 00:03:15,910 ‫You can do way more things. 58 00:03:16,330 --> 00:03:23,530 ‫But it becomes more complicated as you go along because you have to manage all of these extra things. 5506

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