Prática de Shadowing: Array Map in 100 Seconds - Aprenda a falar inglês com vídeo

Criando lição...
1
ArrayMap.
2
Create a new array by calling a function on every element in a different array.
3
Imagine we have an array of squares.
4
We can call a function on every single one of those
5
squares using map to convert it to a new array of circles.
6
In other words, it's just a loop, where the goal of that loop is to create a new array.
7
In our code, let's start with an array of objects that contain some user data.
8
Our goal is to take this array of objects
9
and convert it to an array of strings that only contain the user names.
10
You could do this imperatively by creating a new empty array, then use a for loop to push each individual username to the new array.
11
Notice how we're using statements to change the app's state.
12
This is known as imperative programming.
13
Map on the other hand is declarative and describes how to create this new array using a function.
14
The new array is equal to the original array mapped to a function.
15
The function is passed as an argument to map, and it's called on every element in the original array.
16
The function has access to the current element in the loop as well as its index.
17
In the body of the function, your job is to compute a new value and then return it.
18
And we've now solved the same problem we did with the for loop, but with less code and without mutating the internal state.
19
If you're a ReactJS user, you'll often see Map used to take some initial data and then map it to JSX for the actual UI.
20
Or maybe you need these usernames to do something asynchronously like fetch additional data from the database.
21
You could do that by mapping them all to an array of promises, then running them concurrently with promise.all.
22
One anti-pattern to be aware of with map is
23
that you should only use it if you plan on using the new array.
24
If you just need to run a loop, consider for each, or a regular for loop instead.
25
This has been ArrayMap in 100 seconds, thanks for watching, and I will see you in the next one.

Vocabulário e dicas de fala para esta lição

Este vídeo tem 25 frases e 372 palavras para praticar shadowing. A fala dura 1:39. O falante fala rápido, cerca de 227 palavras por minuto, então espere sons ligados e reduzidos. Apenas 81% das palavras estão entre as 3.000 mais comuns do inglês, por isso o vocabulário é exigente.

Vocabulário principal deste vídeo

15 palavras menos comuns do vídeo, com pronúncia e significado:

  • array /əˈɹeɪ/ (substantivo) — conjunto, traje. Clothing and ornamentation; raiment.
  • loop /luːp/ (substantivo) — laço. A length of thread, line or rope that is doubled over to make an opening.
  • element /ˈɛləmənt/ (substantivo) — fundamento. One of the simplest or essential parts or principles of which anything consists, or upon which the constitution or fundamental powers of anything are based.
  • convert /kənˈvɝt/ (verbo) — converter, transformar. To transform or change (something) into another form, substance, state, or product.
  • username (substantivo) — username, nome de usuário. A name or string of characters used as a person's identification on an individual computer system.
  • solve /sɒlv/ (verbo) — resolver, solucionar. To find an answer or solution to a problem or question; to work out.
  • string /stɹɪŋ/ (substantivo) — barbante, corda. A long, thin and flexible structure made from threads twisted together.
  • database /ˈdeɪtəˌbeɪs/ (substantivo) — banco de dados, base de dados. A collection of (usually) organized information in a regular structure, usually but not necessarily in a machine-readable format accessible by a computer.
  • imperative /ɪmˈpɛɹ.ə.tɪv/ (adjetivo) — essencial, imperativo. Essential; crucial; extremely important.
  • fetch /fɛt͡ʃ/ (verbo) — buscar. To retrieve; to bear towards; to go and get.
  • compute /kəmˈpjuːt/ (verbo) — computar, calcular. To reckon, calculate.
  • concurrently (advérbio) — simultaneamente. In a concurrent manner; at the same time.
  • declarative /dɪˈklæɹ.ə.tɪv/ (adjetivo) — declarativo. Serving to declare; having the quality of a declaration.
  • imperatively (advérbio) — imperativamente. In an imperative manner.
  • mutate /ˈmju.teɪt/ (verbo) — mutar. To undergo mutation.

Pronúncia para ficar de olho

O falante usa 4 contrações e formas reduzidas, como we're, we've, you'll. Diga-as na forma curta, do jeito que você ouve.

  • Palavras longas — acerte a sílaba tônica: imperative /ɪmˈpɛɹ.ə.tɪv/, declarative /dɪˈklæɹ.ə.tɪv/

Como praticar com este vídeo

  1. Ouça o vídeo inteiro uma vez sem falar e anote as palavras que você não conhece.
  2. Comece na velocidade 0,75×, faça shadowing frase por frase e volte à velocidade normal quando ficar fácil.
  3. Grave a sua voz e compare com o original, prestando atenção a palavras como array, loop, element.

Gramática neste vídeo

As estruturas que o falante mais usa, com as palavras exatas do vídeo:

EstruturaNo vídeo
Present perfect have/has + particípio passado — uma ação passada que ainda importa agorawe've now solved · has been
Voz passiva be + particípio passado — o foco está no que acontece, não em quem fazis known · is passed

O que é a Técnica de Shadowing?

Shadowing é uma técnica de aprendizado de idiomas com base científica, originalmente desenvolvida para o treinamento de intérpretes profissionais. O método é simples, mas poderoso: você ouve áudio em inglês nativo e repete imediatamente em voz alta — como uma sombra seguindo o falante com 1-2 segundos de atraso. Pesquisas mostram melhora significativa na precisão da pronúncia, entonação, ritmo, sons conectados, compreensão auditiva e fluência na fala.

Técnica de shadowing: leia o guia completo passo a passo →