تدريب Shadowing: Day 26 of English Speaking Practice - تعلم التحدث بالإنجليزية عبر الفيديو

جارٍ إنشاء الدرس...
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

السياق والخلفية

في هذا الفيديو، يتحدث المتحدث عن موضوع تقنية "الميدل وير" في إطار عمل إكسبريس، حيث يتضمن الشرح كيفية عمل هذه التقنية ودورها المهم في التطبيقات الحقيقية. الميدل وير هو نوع من الدوال التي تُستخدم كوسيط بين المستخدم والمتصفح والخادم، وتلعب هذه التقنية دورًا حيويًا في إدارة الطلبات والاستجابة في أي تطبيق متطور.

أهم 5 عبارات للتواصل اليومي

  • ما هو الميدل وير؟ - سؤال ضروري لفهم الفكرة.
  • كيف يمكنني تحسين تدفق البيانات؟ - يشير إلى أهمية تحسين التنقل بين المكونات.
  • لماذا نحتاج إلى الميدل وير في التطبيقات الكبيرة؟ - يتناول ضرورة استخدام هذه التقنية في التطبيقات المعقدة.
  • كيفية إدارة الطلبات والاستجابات؟ - يعكس الحاجة لفهم كيفية التعامل مع البيانات.
  • ما هي التحقق من صحة الطلبات؟ - يسأل عن طرق التأكد من صحة البيانات قبل المعالجة.

دليل خطوة بخطوة لتقنية التظليل

لتحسين مهارات الممارسة والتحدث باللغة الإنجليزية، تابع الخطوات التالية:

  1. استمع بعناية: ابدأ بمشاهدة الفيديو الأصلي بشكل دقيق، مركّزًا على النطق والمفردات.
  2. استخدم تقنية التظليل: أسلوب الشادو سبيك (طريقة التظليل) هو وسيلة فعالة لتقليد المتحدثين. حاول تكرار الجُمل بعد كل عبارة.
  3. قم بتدوين الفقرات المهمة: من حديث المتحدث، دوّن العبارات التي تشعر أنها قد تفيدك في تحسين النطق باللغة الإنجليزية.
  4. تمرن على عباراتك: استخدم العبارات التي تدربت عليها في محادثات يومية، مما يساعد على التكيف مع استخدامها في السياقات المختلفة.
  5. قم بمراجعة الأداء: سجل نفسك أثناء التحدث، واستمع مرة أخرى لتحديد المجالات التي تحتاج إلى تحسين.

باستخدام هذه الخطوات، يمكنك تعزيز مهاراتك في ممارسة المحادثة الإنجليزية وتعزيز قدرتك على التفاعل بثقة. تذكر أن التعلم هو عملية مستمرة، وتعلم الإنجليزية مع يوتيوب هو وسيلة رائعة لتطوير النطق ومهارات التواصل.

ما هي تقنية التظليل الصوتي؟

التظليل الصوتي (Shadowing) تقنية تعلم لغة مدعومة علمياً، طُورت أصلاً لتدريب المترجمين الفوريين المحترفين. الطريقة بسيطة لكنها قوية: تستمع لصوت إنجليزي أصلي وتكرره فوراً بصوت عالٍ — كظل يتبع المتحدث بتأخير 1-2 ثانية. تُظهر الأبحاث تحسناً كبيراً في دقة النطق والتنغيم والإيقاع وربط الأصوات والاستماع والطلاقة.