Luyện nói tiếng Anh bằng Shadowing qua video: What are Design Patterns? | Introduction to Design Patterns and Principles | Geekific

Chọn chế độ luyện tập

Mỗi chế độ mở một phòng luyện tập toàn màn hình.

11 câu
Nếu các câu quá ngắn hoặc quá dài, hãy bấm Edit để chỉnh sửa.
1
What's up geeks and welcome to the channel! If you're in the computer science domain you definitely have heard of design patterns before or even used a few patterns in practice with or without your knowledge but really what are design patterns?
2
why were they created in the first  place and who decided to create them?
3
what is actually the main  purpose behind design patterns?
4
all these questions and more will be answered  in this first video of our design pattern series to which later we will add more videos  detailing each pattern on its own.
5
As always and to better understand  the concept at hand let's take a practical example and let's imagine a steak. You see I may have imagined a well done steak you may have imagined a medium done one someone else might have imagined a vegan steak, while ordering a steak at a restaurant,  each one of us orders it differently we don't all necessarily have to  order or eat our steak the same way and yet the cook that is preparing it, will take the same piece of  meat or soy in addition to the way or policy of how we like our steak and prepare a delicious meal a different one for each one of us using the same  piece of meat as a starting point To compare this to a computer program suppose  we have a Chef class with a prepare() method This method can take a WellDoneInstruction  object and in this prepare method the chef will know how to prepare a well-done steak but what about other ways of preparing a steak we will have to overload this method to take in  a MediumDoneInstruction and a VeganInstruction Okay now our chef knows how  to cook all the steaks we want Let's say this chef extended his knowledge and  now knows of five additional ways to cook a steak should we add five more methods? Well let me suggest something else, why not replace all these methods with a single  method that takes a steak cooking instruction and let all these classes inherit  this one what do you think?
6
Isn't that a better design for our Chef class You see this way, our class is closed  for modification and open for extension which means that not only we won't  have to add any more methods nor even touch our Chef class in the future but in addition to this when a new instruction is needed all we have to do is extend the SteakCookingInstruction class  we created with this new instruction and the prepare method will  handle it automatically Now because of our design, this chef  apparently skyrocketed and decided to open a new branch for the restaurant So every time a new customer enters the restaurant the chef goes ahead and informs them  of the opening date and details for the new branch but do you think that is the best  approach to deal with such a scenario?
7
Don't you think that instead of  waiting for people to come in the chef should have instead messaged  all his customers the details about the opening or even posted on social media and those interested would have showed up wouldn't his reach be far larger? In both previous scenarios the solutions I suggested hint at a specific pattern this pattern will not actually solve our problem and generate magically ready code for us but rather it will give us a description or template to follow a way of thinking  that will help us solve these problems like a series of formalized best practices, steps  that programmers have followed and used to solve common problems like the one we just encountered. Design Patterns best became known from the design patterns book by Erich Gamma, Richard  Helm, Ralph Johnson, and John Vlissides often referred to as the Gang of  Four book published in the mid 90s.
8
Now, this book details 23 design patterns  which were split into three groups: Creational Patterns, Structural  Patterns, and Behavioral Patterns.
9
Creational patterns deal  with the creation of objects Instead of you instantiating all  objects very specifically and explicitly they give you more flexibility  in how the objects are actually created Let's suppose that we have  a class with 10 attributes but not every time we create an object based on  this class we need to specify all 10 attributes sometimes you only need one, in other cases  three or two, and sometimes eight or nine, in such cases we are left with two  solutions and not quite the best out there: either to create a lot, like a lot, of  overloaded constructors for our class or create one constructor that takes  all arguments but then we will need to pass as null values the ones we don't  require upon creation of our objects Well, design patterns will tell  you wait, you have a third option follow the template provided  by the Builder Pattern, a template widely used and tested  by many developers out there Well if I were in your shoes  I'd pick this last option.
10
Structural patterns deal with  how classes are actually designed with how things like inheritance  and composition and aggregation can be used to provide extra functionality Let's consider that in our application we are storing book objects and these books well there's too many of them, like in the hundred thousand books of a library, or the books in all of amazon online store, and for some reason we need to represent each book by an object You see in this case we will have a bunch of book objects that will share the same attributes and by bunch I mean in the thousands which will have the same author, the same amazon  physical storage location, same places it can be delivered to, same provider, etc. you got the idea and maybe the only attribute that will defer is the title itself and the price in some cases So why create for each book an object and consume all this amount of memory while at the same time if we follow the template specified by the Flyweight Pattern we will be able to minimize memory usage by sharing as much data as possible  between our similar objects You see that is what design  patterns are trying to do they are trying to provide us with a schema, a step-by-step definition or template to help us overcome development or architectural  problems that others have faced before us.
11
Finally, Behavioral patterns are specifically  concerned with communication and assignment of responsibilities between  objects as the program is running The two examples we gave at the beginning  of our video can actually be solved using two different behavioral patterns one of them being the Strategy pattern Let's take a second example and  suppose we realized that the state of an object in our application will  be changed by a lot of other objects but we need to be able to undo the last change Well this can be done in many different ways and you are free to use any of them but there is a Memento design pattern that describes a simple proven approach. So to sum up, design patterns will speed up your development process by providing  tested and proven development models At first you may not notice that you require  the use of this pattern here or there or you may make use of it without even knowing but with time practice and hopefully with the help of our videos you will! So that's it for this video, I hope it was helpful, thank you guys for watching,  take care and I will see you in the next one!

Tải Ứng Dụng

Mọi thứ bạn cần để nói trôi chảy

Chấm điểm AIChấm từng câu nói
Luyện IPAThành thạo mọi âm
Từ vựngMở rộng vốn từ
Game Từ vựngHọc qua chơi
FOR YOU

Video gợi ý

Từ vựng và ghi chú luyện nói cho bài học này

Bài luyện nói trình độ C1 này dựa trên video “What are Design Patterns?”. Những từ được nhắc lại nhiều nhất trong bài: pattern, object, design, steak, chef. Video này có 11 câu và 1284 từ để luyện shadowing. Phần lời nói dài 7:17. Người nói nói với tốc độ tự nhiên, khoảng 176 từ mỗi phút, gần với hội thoại hằng ngày. 85% số từ nằm trong 3.000 từ tiếng Anh thông dụng nhất; phần còn lại nên xem trước khi luyện. 7 trong 11 câu là câu hỏi, nên bài này hợp để luyện ngữ điệu câu hỏi và cách trả lời ngắn.

Từ vựng quan trọng trong video

10 từ khó nhất trong video, kèm phiên âm và nghĩa:

TừPhiên âmNghĩa
steak danh từ/steɪk/bít tết, miếng thịt
template danh từ/ˈtɛm.plɪt/bản mẫu, khuôn mẫu
attribute danh từ/ˈæt.ɹɪˌbjut/định ngữ
overload động từ/ˌəʊvəˈləʊd/quá tải
inherit động từ/ɪnˈhɛɹɪt/thừa kế
programmer danh từ/ˈpɹoʊɡɹæmɚ/lập trình viên
undo động từ/ʌnˈduː/hoàn tác
null danh từ/nʌl/rỗng
consume động từ/kənˈsum/dùng, tiêu thụ
architectural tính từ/ˌɑɹkɪˈtɛkt͡ʃəɹəl/kiến trúc

Ngữ pháp trong video

Những cấu trúc người nói dùng nhiều nhất, kèm đúng cụm từ trong video:

Cấu trúcTrong video
Câu điều kiện if + mệnh đề, will/would + động từ — điều kiện và kết quảif I were in your shoes I'd pick
Câu bị động be + quá khứ phân từ — nhấn vào việc xảy ra, không phải người làmwill be answered · is closed · were split
Thì hiện tại hoàn thành have/has + quá khứ phân từ — việc đã xảy ra nhưng còn liên quan đến hiện tạihave heard · have followed · have faced
Mệnh đề quan hệ who / which + mệnh đề — thêm thông tin về người hoặc vậtextension which means · patterns which were · thousands which will

Phát âm cần chú ý

Người nói dùng 8 dạng rút gọn, ví dụ don't, I'd, isn't. Hãy nói theo dạng ngắn đúng như bạn nghe.

  • Âm “sh” và “zh”: aggregation /æɡɹəˈɡeɪʃən/, instantiate /ɪnˈstænʃieɪt/, modification /ˌmɑdɪfɪˈkeɪʃən/
  • Từ dài — đặt trọng âm cho đúng: behavioral /bɪˈheɪvjəɹəl/, aggregation /æɡɹəˈɡeɪʃən/, modification /ˌmɑdɪfɪˈkeɪʃən/, inheritance /ɪnˈhɛɹɪtəns/, architectural /ˌɑɹkɪˈtɛkt͡ʃəɹəl/

Những âm người Việt thường gặp khó:

  • Cụm phụ âm cuối — đọc đủ từng âm, đừng nuốt âm cuối: inheritance /ɪnˈhɛɹɪtəns/, hint /hɪnt/
  • Âm /tʃ/, /dʒ/ và /ʒ/ — tiếng Việt không có, đừng đọc thành “ch” hay “gi”: magically /ˈmæd͡ʒ.ɪ.kli/, architectural /ˌɑɹkɪˈtɛkt͡ʃəɹəl/
  • Âm /æ/ — mở miệng rộng hơn âm “e”: attribute /ˈæt.ɹɪˌbjut/, aggregation /æɡɹəˈɡeɪʃən/, instantiate /ɪnˈstænʃieɪt/, magically /ˈmæd͡ʒ.ɪ.kli/, programmer /ˈpɹoʊɡɹæmɚ/

Cách luyện với video này

  1. Nghe hết video một lần, chưa cần nói, và ghi lại những từ bạn chưa biết.
  2. Bắt đầu ở tốc độ 0,75×, nói đuổi từng câu, rồi quay lại tốc độ bình thường khi đã quen.
  3. Ghi âm giọng mình rồi so với bản gốc, chú ý các từ như steak, template, attribute.

Phương Pháp Shadowing Là Gì?

Shadowing là kỹ thuật học ngôn ngữ có cơ sở khoa học, ban đầu được phát triển cho chương trình đào tạo phiên dịch viên chuyên nghiệp và được phổ biến rộng rãi bởi nhà đa ngôn ngữ học Dr. Alexander Arguelles. Nguyên lý cốt lõi đơn giản nhưng cực kỳ hiệu quả: bạn nghe tiếng Anh của người bản xứ và lặp lại to ngay lập tức — như một "cái bóng" (shadow) đuổi theo người nói với độ trễ chỉ 1–2 giây. Khác với luyện ngữ pháp hay học từ vựng bị động, Shadowing buộc não bộ và cơ miệng phải đồng thời xử lý và tái tạo ngôn ngữ thực tế. Các nghiên cứu khoa học xác nhận phương pháp này cải thiện đáng kể phát âm, ngữ điệu, nhịp điệu, nối âm, kỹ năng nghe và độ lưu loát khi nói — đặc biệt hiệu quả cho người luyện IELTS Speaking và muốn giao tiếp tiếng Anh tự nhiên như người bản ngữ.

Phương pháp shadowing: đọc hướng dẫn từng bước đầy đủ →