Shadowing Practice: Day 26 of English Speaking Practice - Learn English Speaking with Video

Creating lesson...
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

Context & Background

In today's video, the speaker delves into the concept of middleware within the Express framework, a crucial component for managing server functions and client requests in real-world applications. Through this discussion, learners are introduced to technical vocabulary and concepts that are commonly used in programming and web development, while also practicing their English speaking skills. The emphasis on middleware showcases how functions in coding can parallel organized communication, making this a valuable lesson for both English and tech enthusiasts.

Top 5 Phrases for Daily Communication

  • “What is middleware?” - A fundamental question that sets the stage for deeper dialogue.
  • “It is very important” - This phrase highlights the significance of a topic and can be applied in various discussions.
  • “You want to maintain all the history” - Useful in conversations about data management and record-keeping.
  • “Check whether the user is valid” - A practical example reflecting verification processes, applicable in both technical and non-technical spheres.
  • “Throw an error” - Essential vocabulary for technical discussions that can also be metaphorically used in daily life when addressing mistakes or problems.

Step-by-step Shadowing Guide

To improve your English speaking skills using this video, follow these steps for an effective shadowing practice:

  1. Listen Actively: Start by watching the video to understand the context. Pay close attention to pronunciation and intonation used by the speaker.
  2. Pause and Repeat: Use the shadowing technique by pausing the video after every sentence or phrase. Try to replicate what you hear, mimicking both the flow and emotion of the speaker. This not only aids in language retention but also enhances your speaking rhythm.
  3. Analyze the Vocabulary: Focus on the technical terms like “middleware,” “API,” and “request validation.” Write these down and practice using them in sentences to solidify your understanding.
  4. Record Yourself: After a couple of shadowing sessions, record your own voice as you repeat phrases from the video. Listen back to spot differences in your pronunciation and tone.
  5. Engage with Others: Share what you’ve learned with a friend or language partner. Discussing the topic allows you to use new vocabulary in conversation, reinforcing your learning.

By integrating these techniques, you'll not only improve your English but also gain confidence in discussing technical subjects. Remember, frequent practice using shadow speech will accelerate your learning. So, embrace the learning journey and enjoy using resources like YouTube to expand your linguistic skills! With daily exercises, you can become proficient in both English and your areas of interest, such as web development and programming.

What is the Shadowing Technique?

Shadowing is a science-backed language learning technique originally developed for professional interpreter training and popularized by polyglot Dr. Alexander Arguelles. The method is simple but powerful: you listen to native English audio and immediately repeat it out loud — like a shadow following the speaker with just a 1–2 second delay. Unlike passive listening or grammar drills, shadowing forces your brain and mouth muscles to simultaneously process and reproduce real speech patterns. Research shows it significantly improves pronunciation accuracy, intonation, rhythm, connected speech, listening comprehension, and speaking fluency — making it one of the most effective methods for IELTS Speaking preparation and real-world English communication.