Shadowing Practice: TypeScript in 100 Seconds - Learn English Speaking with Video

Les maken...
1
TypeScript.
2
Validate your JavaScript ahead of time with static type checking.
3
JavaScript is a dynamic language where we can do all kinds of crazy things, like reference variables that don't exist or work with objects of an unknown shape.
4
The code is interpreted by a browser, but if your code is broken, you won't catch it until runtime when the browser throws an error.
5
TypeScript prevents errors like this from ever happening by extending JavaScript with types.
6
The language is a strict superset of JavaScript, which means when you open up a TS file, you can write plain JavaScript with all of its extra features being completely optional.
7
But notice in the code here how the IDE is providing feedback about using a variable that doesn't exist.
8
Instead of fixing this issue weeks later in a stack trace after the company has lost millions of dollars, we can fix it right here, right now.
9
The reason we get this instant feedback is because TypeScript behaves like a compiled language, where JavaScript is the compilation target.
10
You can run the TypeScript compiler using the tsc command.
11
It will take the ts file and and transpile it into vanilla JavaScript.
12
And you can choose any flavor of JavaScript you want if you need to target ancient browsers.
13
And that means you can use the latest
14
and greatest syntax features of JavaScript without having to worry if they'll be supported in an older environment.
15
Your TypeScript project will likely have a tsconfig file, which provides an infinite number of ways to customize the behavior of the compiler.
16
But the primary goal of TypeScript is to enable static typing.
17
One way it achieves that is by allowing you to annotate your code with types.
18
We can strongly type a variable using a colon followed by its type, like a string, boolean, or number.
19
That's known as an explicit type.
20
If we then try to assign its value as the wrong type, we get an error.
21
Alternatively, if we set an initial value, it will implicitly infer the type.
22
However, there may be cases where you want to opt out of this behavior, in which case you can annotate with the any type.
23
That allows you to loosely type or opt out of type checking.
24
When working with an array, use brackets to strongly type a list.
25
In addition, you can define your own custom types and interfaces, which is especially powerful when working with objects.
26
The car interface here defines various types of the properties on an object.
27
We can then apply the interface to a plain JavaScript object.
28
The beauty of having strongly typed code is that we get autocomplete everywhere in our IDE.
29
We don't have to jump back and forth to documentation
30
or dig through stack traces to figure out why our code's not working.
31
If you like TypeScript as much as I do, consider becoming a pro member at Fireship.io.
32
For the next few days, everything will be 40% off, including lifetime memberships.
33
Thanks for watching, and I will see you in the next one.

Woordenschat en spreektips bij deze les

Deze spreekles op niveau C1 is gebaseerd op de video “TypeScript in 100 Seconds”. Deze woorden komen het vaakst terug: type, Javascript, Typescript, code, object. Deze video bevat 33 zinnen en 515 woorden om na te spreken. Het gesproken deel duurt 2:24. De spreker praat snel, ongeveer 215 woorden per minuut, dus reken op verbonden en ingeslikte klanken. Slechts 77% van de woorden hoort bij de 3.000 meest gebruikte Engelse woorden, dus de woordenschat is pittig.

Belangrijke woorden in deze video

De 14 moeilijkste woorden uit de video, met uitspraak en betekenis:

WoordUitspraakBetekenis
stack zelfstandig naamwoord/stæk/stapel
compile werkwoord/kəmˈpaɪl/samenstellen
validate werkwoord/ˈvæl.ɪ.deɪt/valideren
syntax zelfstandig naamwoord/ˈsɪn.tæks/syntaxis
colon zelfstandig naamwoord/ˈkoʊ.lən/dubbele punt, dubbelpunt
loosely bijwoord/ˈluːsli/ruim
assign werkwoord/əˈsaɪn/toewijzen
interpret werkwoord/ɪnˈtɜː.pɹɪt/interpreteren
bracket zelfstandig naamwoord/ˈbɹækɪt/haakje
compilation zelfstandig naamwoord/ˌkɑm.pɪˈleɪ.ʃən/compilatie
optional bijvoeglijk naamwoord/ˈɑp.ʃə.nəl/optioneel
explicit bijvoeglijk naamwoord/ɪkˈsplɪs.ɪt/expliciet, uitdrukkelijk
behave werkwoord/bɪˈheɪv/zich gedragen
flavor zelfstandig naamwoord/ˈfleɪvə/meug, smaak

Phrasal verbs die je zult horen

WoordBetekenis
figure out werkwoorduitvogelen, er achter komen

Grammatica in deze video

De structuren die de spreker het meest gebruikt, met de exacte woorden uit de video:

StructuurIn de video
Voorwaardelijke zinnen if + zin, will/would + werkwoord — een voorwaarde en het gevolgif your code is broken, you won't catch
Lijdende vorm be + voltooid deelwoord — het gaat om wat er gebeurt, niet om wie het doetis interpreted · be supported
Betrekkelijke bijzinnen who / which + zin — extra informatie over een persoon of dingJavaScript, which means · interfaces, which is

Uitspraak om op te letten

De spreker gebruikt 5 samentrekkingen en verkorte vormen, zoals don't, doesn't, they'll. Spreek ze kort uit, zoals je ze hoort.

  • De klanken “sh” en “zh”: compilation /ˌkɑm.pɪˈleɪ.ʃən/, optional /ˈɑp.ʃə.nəl/, documentation /ˌdɑkjəmɛnˈteɪʃən/
  • Lange woorden — let op de klemtoon: alternatively /ɔlˈtɝ.nə.tɪv.li/, compilation /ˌkɑm.pɪˈleɪ.ʃən/, documentation /ˌdɑkjəmɛnˈteɪʃən/

Klanken die Nederlandstaligen lastig vinden:

  • Stemhebbende eindmedeklinker — /b/, /d/, /g/, /z/, /v/ niet verscherpen: customize /ˈkʌs.tə.maɪ̯z/, behave /bɪˈheɪv/
  • /æ/ — opener dan de Nederlandse “e”: annotate /ˈæn.ə.teɪt/, static /ˈstæt.ɪk/, stack /stæk/, validate /ˈvæl.ɪ.deɪt/, syntax /ˈsɪn.tæks/

Zo oefen je met deze video

  1. Luister de hele video één keer zonder te spreken en noteer de woorden die je niet kent.
  2. Begin op 0,75× snelheid, spreek zin voor zin na en ga terug naar normale snelheid zodra het makkelijk gaat.
  3. Neem jezelf op en vergelijk met het origineel; let daarbij op woorden als stack, compile, validate.

Wat is de Shadowing-techniek?

Shadowing is een wetenschappelijk onderbouwde taalleermethode die oorspronkelijk is ontwikkeld voor professionele tolkentraining en gepopulariseerd door polyglot Dr. Alexander Arguelles. De methode is eenvoudig maar krachtig: je luistert naar native Engelse audio en herhaalt het onmiddellijk hardop — als een schaduw die de spreker volgt met slechts 1–2 seconden vertraging. In tegenstelling tot passief luisteren of grammaticadrills, dwingt shadowing je hersenen en mondspieren om echte spraakpatronen tegelijkertijd te verwerken en te reproduceren. Onderzoek toont aan dat het de uitspraaknauwkeurigheid, intonatie, ritme, verbonden spraak, luisterbegrip en spreekvaardigheid aanzienlijk verbetert — waardoor het een van de meest effectieve methoden is voor IELTS Speaking-voorbereiding en echte Engelse communicatie.

Shadowing-techniek: lees de volledige stap-voor-stap-gids →