Prática de Shadowing: Day 26 of English Speaking Practice - Aprenda a falar inglês com vídeo

Criando lição...
1
Hello everyone so this is another day of my daily practice and today I want to talk about middleware
2
which is express framework topic and it is related with our last springboard topic also right
3
so let's start so what is a middleware what is the need of middleware right
4
so it is a very important topic of express and almost every real world application use this concept of middleware
5
so what is this a middle there right
6
so it is a one type of function one type of method
7
which will which will trigger which will coming to work between the browser
8
and between the user and express us so a server right
9
so when you give a new API
10
and hit enter then respected response you will see on the browser right
11
and you think that
12
when you hit API then it will go to the particular API function it will go
13
and call this particular API
14
and give you the response direct directly from the user to a browser
15
or from browser to a server but in real world this is not happen right
16
because of all the some type of validation and this thing
17
so for in real world once you write api
18
and hit enter then first your browser call a middleware
19
if the middle you have defined a middleware for this particular api then your browser then
20
call this middleware after the after the middleware it calls the next middleware
21
and after all the middleware has called then after
22
that it will go to the correct API function
23
and give your response so this is a one type of function one type of code
24
where trigger between your response and between your request and response right to pass middleware to
25
Between a function we use on the function like app dot use
26
right and To One middleware to another middleware we use a next function
27
So between a client request and final response all the middleware will be triggered
28
And now you think that what is the need of this middleware, right?
29
so I give you the example that you have a big application
30
or a website and it's a very more
31
and more API endpoint like assume that 100 API endpoint
32
so you think
33
that I want to maintain all the history of API code I want to maintain all the API response and requests
34
so you want to log all the requests like whatever api
35
is called by a client then you see in your console
36
that which is a trigger so there is a one the
37
so you write a console.log an api name
38
and this thing this particular line you have to write all the api for right
39
so you have to write 100 time for all api
40
so it is just uh you think it is just a line right we are copy paste copy paste
41
but in a real word it is uh not for a
42
particular line it can be for a validation function request validation whether the request is valid
43
or not whether the user is authenticated or not right
44
so i'll give you another example from my hospital project
45
that you trigger a apis for a admin right
46
and you have login with the person then first
47
when a epi function is a call the all the middleware will check whether you user is valid
48
or not the user is valid
49
and api is for admin a user is uh i mean user is patient
50
and api is for admin right so it is error then middleware should throw to not
51
access denied error
52
so you have to define all these validation functions all the request parameter whether it is valid
53
or not and this big stuff for all your 100 api calls right
54
so it it becomes very busy it becomes very messy
55
and very big code very lengthy code right
56
so that's why all the scenario with this middleware will work right
57
if you have put the middleware between particular these api then you need to write the whole code
58
and only for once time right and for After all the API, your middleware first trigger and then after your function call that happen.
59
So this is the main use of the middleware function to validate user authenticate
60
or not all the request parameter request body and this thing.
61
So there is one function next.
62
So it is a very important function without this function you cannot move to your next middleware
63
or your next response API function function so
64
if you are not use next function then your browser keep loading
65
and you stuck at a particular middleware you cannot go forward
66
so that's why it is use of mandatory for all the middleware right
67
so this is about middleware
68
and yes it is as similar as java of solid filter
69
chain in concept right in java we have learned what is the filter what is the filter chain
70
and this middleware and this filter then as similar as that right
71
so in java there is a multiple of filter a filter
72
one filter two filters there is a chain of filter
73
and at the end we got our response
74
and here there is a chain of a middleware one middleware two middleware
75
and at the end we got our response so both are similar so i have first studied about java filter
76
and now i'm studying about middleware
77
so for me it is a very uh easy topic right
78
if you are new then you think
79
that is some type of uh you can say some type of difficulties
80
but it is not difficult once you master it
81
and you also think it is very topic is it okay
82
so this is about a middle right so thank you for today

Sobre Esta Aula

Nesta aula, você praticará sua conversação em inglês focando no conceito de middleware dentro do framework Express. O objetivo é entender como as funções de middleware operam entre o navegador e o servidor, além de aprender a importância dessas funções em aplicações do mundo real. Você terá a oportunidade de ouvir exemplos práticos e aplicar o que aprendeu através da técnica de shadowspeak, que é uma maneira eficaz de melhorar a fluência e a compreensão auditiva.

Vocabulário e Frases-Chave

  • Middleware: Função que atua entre o browser e o servidor.
  • API: Interface de Programação de Aplicações, que permite a comunicação entre diferentes softwares.
  • Validação: Processo de checar se uma solicitação é válida.
  • Histórico de APIs: Registro das solicitações de API feitas por um cliente.
  • Função console.log: Método usado para registrar informações no console.
  • Solicitação de cliente: Pedido feito por um usuário para acessar uma API.
  • Autenticação: Processo de verificar a identidade de um usuário.

Dicas de Prática

Para aproveitar ao máximo sua prática de conversação em inglês, recomendamos que você use a técnica de shadow speech. Tente ouvir atentamente a parte do vídeo em que o apresentador fala sobre middleware e repita as frases logo em seguida. Preste atenção à velocidade e ao tom da fala, que são importantes para capturar a essência da pronúncia. Fale junto com o vídeo, utilizando shadowspeaks para aprimorar sua entonação e ritmo.

Outra dica é pausar o vídeo após cada explicação e tentar explicar em voz alta o que você entendeu. Isso não apenas ajudará a consolidar seu aprendizado sobre o conceito de middleware, mas também permitirá que você desenvolva confiança em sua habilidade de falar inglês. Pratique diariamente e utilize as frases e vocabulários aprendidos. Com o tempo e a prática constante, sua fluência e capacidade de comunicação em inglês melhorarão significativamente.

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.