Тёмный

Design Patterns in Plain English | Mosh Hamedani 

Programming with Mosh
Подписаться 4,2 млн
Просмотров 1,4 млн
50% 1

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 621   
@programmingwithmosh
@programmingwithmosh 5 месяцев назад
🚀 Ready to master design patterns? - Check out my full course: mosh.link/design-patterns-course - Subscribe for more awesome content: bit.ly/38ijYjn
@samirkha
@samirkha 3 месяца назад
I love it 💕 26:20
@NathanielMetrock
@NathanielMetrock 3 года назад
There are loads of people teaching you each individual "gang of 4 patterns" on youtube. you can look each one up individually, and find series after series going over them all. but i paid good, hard earned money for mosh's course. the reason why is right here in this video. if you want to really absorb this material, you need a teacher who will challenge you to open your mind and tackle the problem. everyone else just says "here's the answer". we don't need that. buy a book if you want that. if you want a teacher? a real lesson? a real class? start here. start with mosh. thank you mosh. timeless material... and yes, to anyone wondering, you can download and save each video. you will own a hard copy of the material, to sit next to your hard copy of the g.o.4. reference book. kudos.
@jorgecanas3668
@jorgecanas3668 3 года назад
Just want to say that I've been in college for 2.5 years now and this is the first time I understand what an interface is for, thanks a lot!
@fintek9935
@fintek9935 4 года назад
Liked + subscribed + got notifications + save to my daily notes + save to Habitica app + saved to Trello website + wrote ur name on my room wall Ohhh now I feel better, I will not miss nothing from this channel ❤️
@israilkarud9293
@israilkarud9293 4 года назад
Mosh's teaching is the best in the world. Great Educator. Lots of love
@anibalsancheznuma3133
@anibalsancheznuma3133 3 года назад
I agree.
@souvikofficial5734
@souvikofficial5734 24 дня назад
His teaching method is excellent
@bestdavid
@bestdavid 4 года назад
I've taken a course from you a while ago on Udemy and I can tell you're one of the best instructors I've had, congratulations!
@tharrrrrrr
@tharrrrrrr Год назад
Same!
@Vunerio
@Vunerio 3 года назад
After so many years, I finally understood what Interfaces are for ! 😭 You are so clear in your explanations ! 👨🏼‍🏫🎯
@samislam2746
@samislam2746 2 года назад
LOL 🤣
@erikasong3054
@erikasong3054 2 года назад
lmao same!
@vivekkaushik9508
@vivekkaushik9508 3 года назад
This is by far the simplest, visually appealing, informative video I have found on youtube about design patterns.
@ahmed79muhsen
@ahmed79muhsen Год назад
I just love how no matter how good is the English accent of an Iranian, you can always tell. great job by the way.
@BrysonThill
@BrysonThill 11 месяцев назад
I wish you had said at the beginning that this is the first video in a larger paid course. It took me a while to realize the video wouldn't actually be a 1-hour overview "course" of design patterns. I definitely felt misled by the title and thumbnail as someone searching for design pattern videos on RU-vid. At the very end, you say you mentioned it earlier, but I didn't catch that anywhere at the beginning. 🤔
@danielguzmanramirez2281
@danielguzmanramirez2281 3 месяца назад
I feel scammed too... The video was very good, but I was expecting the full content about design Patterns to be in this video, not a PAID course. Did you paid the full course? I don't know if it's worth it for me to do it (just graduated from College with a Software Development AAS degree). I want to learn design patterns but usually tend to use free content online. Please anyone feel free to share your opinions on this comment!
@diManjenje88
@diManjenje88 Месяц назад
Usually Mosh publish 1h video of his courses, but not the full course…
@diManjenje88
@diManjenje88 Месяц назад
@@danielguzmanramirez2281I’ve been studying from Mosh course’s about 4/5 yrs. And I can garantee you it’s worthy every single course I made from code with Mosh!
@danielguzmanramirez2281
@danielguzmanramirez2281 Месяц назад
@@diManjenje88 Is understandable. I didn't know about him before. I watched the whole video and ended up paying for his Ultimate Design Patterns Course. His content is genuinely the best and most clear I found on the Internet. I still think he should clarify at the beginning that this is part of a paid course tho.
@shubhamsinha25
@shubhamsinha25 3 года назад
This is the best explanation of the OOPs principle, I felt like I've known nothing before. I've watched at least 20 videos on OOPs, none has explained it so well. Great content!
@abedalrawas2656
@abedalrawas2656 2 года назад
You're an excellent focus grabber I could watch the whole thing in one go without getting bored. Thank you for the great content.
@jp-hh9xq
@jp-hh9xq 4 года назад
I'm only 9:52 in and I can already tell I'm going down the rabbit hole watching your videos. Great job! Love it! I already know this stuff to a certain degree, from using it all the time, but am trying to clean up my explanations in interviews and presentations and your video is clear and concise. Very nice job! Helps me think about the topics in really clear ways.
@igoerche
@igoerche 2 года назад
Mosh! You are the hero! No, you are the super hero! Mosh for president! I just can't put all of my gratitude in this words. Thank you for all your support on my path!
@AndreiNicolau
@AndreiNicolau 4 года назад
This is great. I can't imagine the amount of work it took to make this video. All the editing, recording, making sure things are right and all for 80 minutes of continuous teaching. Great job man. I want to pay you some money and there is an option to pay directly on youtube for perks. Why don't you use that one ?
@seyhaseng1077
@seyhaseng1077 2 года назад
For meh, All I can pay back is click like button
@jmidash1827
@jmidash1827 4 года назад
Am new in programming. I didn't know where to start. I watched many videos about python but I always got lost. But as soon as I watched your teaching, my God! am so happy I understand what you are saying. #you are a God sent Mosh. Thanks a million.
@gingerine314
@gingerine314 4 года назад
Just started this course but am very impressed so far. I just graduated with a diploma in computer programming but never really grokked design patterns. Thanks for all your work! I will be purchasing the full program.
@mustafasange
@mustafasange 4 года назад
As I was learning about design patter, I am lucky the course has come at the right time. Thanks a lot for the hard word you have put in teaching us 👍
@mustafasange
@mustafasange 4 года назад
Programming with Mosh sure. Also subscribed for the course.
@皇甫少華
@皇甫少華 2 года назад
How to use design pattern with springboot
@rootcause5322
@rootcause5322 2 года назад
100 bar shukria 100 bar shukria... hundred baar shukria... million bar shukria... tum jese ache logo ko sahara hai bhalo logo... ye dil tumhare pyar ka mara hai bhalo logo
@NicoILeone
@NicoILeone 4 года назад
Excellent! Despite not understanding too much English and not programming in Java, I can tell you that you have been very explanatory and very helpful! keep going! Regards!
@obapalacebenin9413
@obapalacebenin9413 2 года назад
I ensure i watch every ads in this channel, he deserves every good things. thanks Mosh.
@duanalfred8867
@duanalfred8867 2 года назад
Hi , Mosh, I learnt the React Native 2 years ago, your class is somehow clear and help me a lot . About this course, it gradually teaches me from fundamental to pattern design, its very friendly to absorb the knowledge, thanks a lot
@sebailing6219
@sebailing6219 4 года назад
Perfect Java Programming Teaching Materials and Perfect Professor!
@augustineawuori95
@augustineawuori95 3 года назад
this is the best Design Patterns course here.
@Furki4_4
@Furki4_4 2 года назад
I've been coding for 6 months and never used interfaces but learned (I thaught I had learnt them). I've done more than 20 projects to improve my coding skills and I think if I knew interfaces properly, I wouldn't have done a lot of coding repeating. I love them and I will use them ! Thank you
@michelleshull9475
@michelleshull9475 Год назад
This was a fantastic lesson, Mosh. I'm a QA, but I'm always trying to understand the systems I'm working with better, and I was able to follow along - even with the more complex ideas - in a way I can't always do with other teachers. Thanks so much. Also, I hope your fans here in the comments call themselves The Mosh Pit. 🤘
@shalugarg6398
@shalugarg6398 4 года назад
I am a big fan of your courses .Thank you for your hard work.God bless u always
@ecea.7869
@ecea.7869 Год назад
I learned more in this video than I had the whole semester thank you so much
@ripporkpoopy6577
@ripporkpoopy6577 3 года назад
This is the first time in my life I was VOCALLY answering to a video content while watching it. So much value, made me feel I was in a class (no pun intended). Thank you !!!!
@ganeshraj5328
@ganeshraj5328 3 года назад
By seeing this video, I saved one week time of development. Thankyou. Planning to do monthly subscription this weekend.
@mual77
@mual77 4 года назад
MOSH, every content you add is very beneficial to all. Thanks a million.
@sathishkomakul
@sathishkomakul 3 года назад
Hi Mosh, really it's very fantastic video on design pattern, before that I just know only design patterns definition but now I have understood clear picture of design patterns the way you provide examples its key point and really good understanding, Thank you so much it's really help me a lot, please also upload other patterns. Thank you very much my guru.
@stan5214
@stan5214 4 года назад
Mosh you're absolutely the best! I'm not a native speaker, and your MVC course helps me to improve both programming skills and English. Moreover, I haven't found as useful and handily examples as you show
@imonisabrian8215
@imonisabrian8215 4 года назад
Hey Mosh, I started learning programming with your tutorials on JavaScript, I really enjoyed most of the things you taught me. Well, sir, I understand what you are taught here but I would like you to please do this same thing with JavaScript like you did with Java
@SyedAli-kr6qw
@SyedAli-kr6qw 3 года назад
Hey fellow JS developer. Was lookign for someone ask this question. It seems like Data Structures and Algorithms or this course are really for those big languages.
@siddheshnaik4956
@siddheshnaik4956 Год назад
LEGEND . The best video on internet right now.
@millernick8675
@millernick8675 Год назад
Every bit of information is sorted in such away that anybody who doesn't know OOP Principles or ULM notation will understand it. You are doing great. Keep Going👍 . By the way, if you watch this video and you don 't understand Java notation "+" , "#" , "~" or "-". It's normal but it is easy to understand. So, "+" means "public" , "#" means protected , "~" means package which you are using and "-" means private. That's all. Everyone has a nice day 😉 Bye.
@anupamasingh7
@anupamasingh7 4 года назад
Hi Mosh..... I am a big fan of your tutorials and first time i am writing a comment for a youtuber ... Thanks a lot for amazing tutorials.....👍
@anupamasingh7
@anupamasingh7 4 года назад
@@programmingwithmosh Sure Mosh .... will do 👍👍
@zuzukouzina-original
@zuzukouzina-original Год назад
Mosh Hamedani is the best Tutor there is together with that dude of Coding Train.
@official-DRFRE
@official-DRFRE 2 года назад
Dear Mosh Your explanation is very clear and your content is very attractive. Thank you for your support.
@NaBoo
@NaBoo 4 года назад
Thank you, Mosh. just purchased your course. Super excited to learn it.
@muhammedabdurahman6026
@muhammedabdurahman6026 Год назад
WOW WOW WOW WOW i realized i was on the wrong path on coding without those concepts you saved me from writing Agly code.Thank you MOSH
@mouhamedjilaniomrane2218
@mouhamedjilaniomrane2218 4 года назад
The best IT teacher on RU-vid ❤️❤️
@chandandy4919
@chandandy4919 4 года назад
@@programmingwithmosh Hey Mosh, at 54:17 u have not pushed the editor state with c, but how is the pop logic working as expected. Pushing c to the history is required right ?
@hasindus
@hasindus Год назад
Thanks for this clear explanation
@daviduntalan
@daviduntalan 2 года назад
i'm new to this Design Patterns and after watching this tutorial ... it seems like i knew it all ^_^ i will plan to enroll his course because this is very comprehensible! ^_^
@AnaAna-yh3ep
@AnaAna-yh3ep Год назад
Your way of explaining all these things is absolutely amazing!!!!!
@ruantristancarlinsky3851
@ruantristancarlinsky3851 2 года назад
Excellent video, did the whole tutorial in one sitting and made detailed notes. Learnt so much. Thank you!!
@usmanh770
@usmanh770 4 года назад
I'm busy, so I just liked, viewed, and left. You helped me become the C# developer I am today, bless ya.
@AshutoshShelkeP
@AshutoshShelkeP 10 месяцев назад
Mosh teaches well but his voice is so calming that it makes me sleepy.
@LinkMan889
@LinkMan889 3 года назад
Thank you so much for helping me get ready for the interview. Promise if I get the job and get cash I will be more than honored to support your awesome work.
@paraklesis2253
@paraklesis2253 3 года назад
Are congratulations in order?
@whiteShadow22YT
@whiteShadow22YT Год назад
There's always good content to be found here, short, clear, to the point...
@antonyspiano2403
@antonyspiano2403 2 года назад
No words bro, Excellent !!!! and THANK You from the bottom of my heart for keeping these treasures online for FREE .. I had used ur Python course in 2020 and could use that knowledge in my project.. Now design patters. Only thing I can say , you are the best in both of this (Cause I have been searching a lot and met with many online instructor) .
@alphabetsalphabets5242
@alphabetsalphabets5242 3 года назад
I subscribed almost immediately just by the high quality of the intro.
@ahmadchahine8681
@ahmadchahine8681 4 года назад
thank you mosh for this video . i cant find the ultimate java video which is 4 hours long
@apall2764
@apall2764 3 года назад
Mosh is really good for explaining Concepts Thank you for making this video public
@doshigopi
@doshigopi 3 года назад
Thank you for the course, just needed at the right time. I have interview tomorrow, and if I pass, all credits to you
@abouzarazarpira6198
@abouzarazarpira6198 3 года назад
how was it ?
@doshigopi
@doshigopi 3 года назад
@@abouzarazarpira6198 i got hired for the senior software engineer post.
@abouzarazarpira6198
@abouzarazarpira6198 3 года назад
@@doshigopi good to hear that, gave me hope, best of luck
@doshigopi
@doshigopi 3 года назад
@@abouzarazarpira6198 thank you. all the best to you.
@ziasultan8157
@ziasultan8157 4 года назад
Please make a complete design pattern course ASAP. I'm awaiting for this for long time
@DANI-gr7is
@DANI-gr7is 4 года назад
Hi Mosh, Please create course for System Design. That will be helpful for many experienced developers. I am using your course(Data structures & algorithms and Design patterns) for my interview preparation. But I am missing system design course. I have seen few other tutorials. But you explain things better than anyone.
@muaaznaeem3528
@muaaznaeem3528 4 года назад
Hi Sir ..just wanna say thank you for your courses i learnt many things from you....even now a days ( in Quarantine) i spend most of the time in my day in front of you ... a great respect and love for you my Teacher...
@incpwnge
@incpwnge 4 года назад
Hi. I have been like "what is an abstract class? Where can i find an understandable info?" and met this channel. Then found Mr.Hamedani on udemy =) win-win Thank you for the simple explanation.
@alphajaguar9156
@alphajaguar9156 4 года назад
Hi sir, heard you quit your job for teaching dumb-dumb's like us. Thank you and may God shine his grace upon you.
@andreeai4401
@andreeai4401 4 года назад
I cannot stop laughing =)))))) dumb-dumbs =))) But yes...thank you, Mosh! Keep up the good work!
@pritpalkaur171
@pritpalkaur171 4 года назад
Programming with Mosh you are actually amazing no words your videos are very close for preparing interviews too I did👌 Seriously you’re there for dumb dumbs like us
@codewithwasif3517
@codewithwasif3517 4 года назад
Seriously I don't know what words to choose. But, seriously Mosh, you are a great man. Respect ++ :)
@chomba8648
@chomba8648 3 года назад
Thank you Mosh i find your tutorials more resourceful than school lectures
@AmarSingh-uw1db
@AmarSingh-uw1db 4 года назад
The way you explain sir, helps understanding me things very easy. You have changed my life Sir. Thanks you so much sir. 💙💙💙
@ziasultan8157
@ziasultan8157 4 года назад
I'm looking for good design pattern course. I looked for your design pattern course at udemy but didn't found. Thank you for this course. Your course is always awesome.
@AkshayPaunikar
@AkshayPaunikar 4 года назад
He left udemy now he uploads courses on his own website
@alwise_studio
@alwise_studio 4 года назад
Mosh is the best tutor. Thank you very much. 🤝👍
@geeksnetmask
@geeksnetmask 2 года назад
you are a genius Mosh. .like you. I wish the best for you.
@barwalgayatri4655
@barwalgayatri4655 4 года назад
Hi Mosh please add this full course under Udemy so that we can get corporate approval for the course fee payment
@behnamrasooli8801
@behnamrasooli8801 4 года назад
I've been long waiting for this course done by you. Only $30!!! I already know most of the content, but even if I learn one or two concepts from this course, it values thousands of dollars to me!
@goddardpk
@goddardpk 2 года назад
Mosh, so glad to see you avoid using abstract classes and suggest interface instead! So many demos will not take this into account. I think Microsoft had a good way of distinguishing when to use abstract class over interfaces. They suggested 'versioned' implementations as one reason to use an abstract class. I like your simpler or more pragmatic approach for beginners.
@yorgoslamprakis1542
@yorgoslamprakis1542 3 года назад
bought your course even though the company i am working for provides us with full access to udemy for business and o'reilly books . thanks for the great content (I am also looking forward to part 3) :)
@Incredible_wild_life
@Incredible_wild_life 3 года назад
Mosh you are the programming boss. We thank you again.
@kartickchakraborty7948
@kartickchakraborty7948 4 года назад
Hi Mosh, I'm Kartick from India. I want to learn Oracle from A to Z. Mosh can you please upload full tutorial on Oracle Enterprise 19C from Beginners to Advanced level? There are no quality tutorial for OracleI on RU-vid. Please help me Mosh. I need to learn it as soon as possible. I found no one on RU-vid, who can describe and teach so beautifully. I'm really really pleased by the way of your teaching. Thanks Mosh for helping us unconditionally. May God fulfill your every wish!
@rajeshkumarmahto3106
@rajeshkumarmahto3106 4 года назад
Love you Mosh....you are great instructor
@AjoykarmakarReal
@AjoykarmakarReal 3 года назад
you are seriously a good teacher without any doubt!
@EatCodeTravel
@EatCodeTravel 4 года назад
Hey !!! Mosh !!! just watched the Add without skipping, i hope it will add some dollars and keeps you motivated for making such awesome content for us !!!! Thanks !!!!
@o1techacademy
@o1techacademy Год назад
This content is invaluable. Thank you Mosh.
@randytauren
@randytauren 4 года назад
The "dont abuse pattern" example was genius
@destinyjames6117
@destinyjames6117 3 года назад
I love how much effort you put into these videos. Changing Images and nice explanation makes this the best video for the topic. Came here because my lecturer was just reading the slides, and the slides was confusing
@leonf.7893
@leonf.7893 4 года назад
Thanks for the free preview. I've needed a course on design patterns for a long time.
@ivelinarnaudov9834
@ivelinarnaudov9834 4 года назад
Very good examples. I was struggling to understand some of those, but I got it now. It just clicked! You just won another subscriber :)
@agilasadi5044
@agilasadi5044 3 года назад
Feedback: everything looks nice and easy to understand, my only problem is that you are getting into IDE features too much too often, it's somewhat confusing.
@headoverbars8750
@headoverbars8750 3 года назад
Mosh rocks!!! Thanks so much for doing this... So glad I found you man... holy moly...
@GaneshKumar-fv2cg
@GaneshKumar-fv2cg 4 года назад
Very good video. Loved the way it is presented. Mainly its not boring even though its 1 hour 20 mins. Well done Mosh!
@anotherhumanLingLing
@anotherhumanLingLing Год назад
This is gold and free!! Thank you so so so much!!
@rogerdeutsch5883
@rogerdeutsch5883 2 года назад
Fantastic teaching with great analogies & example code.
@divyanshsrivatava9756
@divyanshsrivatava9756 4 года назад
Muaaah... your video is like suspense thriller movie. I enjoy watching u. Planing to end NETFLIX to opt your collections
@shubham40901
@shubham40901 2 года назад
i came to know design pattern and now i revised entire object oriented programming😄😄,,
@pranjalnegi9834
@pranjalnegi9834 3 года назад
You are an ultimate teacher🙏🙏😍😍
@DarshanaHashendra
@DarshanaHashendra 4 года назад
Thank you sir. Determine to watch this untill end
@rokonzamann
@rokonzamann 4 года назад
I really need to thank RU-vid's Recommendation Algorithm...
@AtileonVA
@AtileonVA 4 года назад
@@programmingwithmosh Hi! I couldn't find where it is the complete course. I've search on your platform but nothing. Can you send me please a link? Thanks a lot
@tourism8016
@tourism8016 4 года назад
@@AtileonVA - It will be available in late Jan. Its open for pre order - link is in the description
@TravisTennies
@TravisTennies 3 года назад
Communism sucks
@okonkwo.ify18
@okonkwo.ify18 2 года назад
U should thank Mosh not RU-vid.
@aryanbose9084
@aryanbose9084 Год назад
@@okonkwo.ify18 it's like patients thanking god instead of thanking the surgeons, lol.
@s7887177
@s7887177 4 года назад
This is super clear. I am considering to buy those course in the future when I have time. Thank you very much.
@kunalchatterjee4057
@kunalchatterjee4057 4 года назад
I was eagerly waiting for your video! Your student from India!
@mohammedusman3581
@mohammedusman3581 4 года назад
حزاك الله خير، This helped me a lot.
@salaheddine6556
@salaheddine6556 4 года назад
باختصار ماهو disign pattern ?
@keystrmpro
@keystrmpro 2 месяца назад
Simply awesome!! Loads of thanks
@naveensingh7261
@naveensingh7261 4 года назад
Thank you Mosh for this tutorial.. I love your way of teaching 👍
@mamoghandi2446
@mamoghandi2446 4 года назад
Mosh Midani Shie? You are the Best Beradar.
@shivaakrish
@shivaakrish 4 года назад
You are absolutely great Mosh. Thanks a lot for all your wonderful courses. Love from India ❤️🇮🇳
@nodejsman2125
@nodejsman2125 4 года назад
Well taught good sir. Your content translates so well into the working world!
@hamzaazam6355
@hamzaazam6355 9 месяцев назад
🎯 Key Takeaways for quick navigation: 23:24 🛠️ *Encapsulation Principle: Methods for Setting and Getting Balance* - Encapsulation bundles data and methods within a class, hiding object state. - Setter and getter methods, like `setBalance` and `getBalance`, demonstrate encapsulation. - Encapsulation helps prevent objects from entering an invalid state. 26:35 🧠 *Abstraction Principle: Reducing Complexity in Classes* - Abstraction reduces complexity by hiding unnecessary details in classes. - Metaphor of a TV remote control illustrates the abstraction principle. - Methods like `connect`, `disconnect`, and `authenticate` are implementation details hidden from the user. 30:43 🔄 *Inheritance Principle: Reusing Code with Inheritance* - Inheritance is a mechanism for code reuse in object-oriented programming. - Example using a base class `UIControl` and derived classes like `TextBox`. - Base class methods, like `enable`, are inherited by derived classes. 33:01 🌐 *Polymorphism Principle: Objects Taking Many Forms* - Polymorphism allows objects to take on many forms. - Example with a GUI framework and a `draw` method in the `UIControl` class. - The same method, `drawUIControl`, can work with different forms of `UIControl` objects. 36:44 📊 *UML (Unified Modeling Language) Introduction* - UML is a visual language for modeling systems, representing classes and relationships. - Class representation in UML includes fields, methods, and access modifiers. - Three types of relationships: Inheritance (arrow with a filled triangle), Composition (arrow with a diamond), and Dependency (dashed arrow). 46:44 🔄 *Memento Pattern* - The Memento Pattern is introduced for implementing undo mechanisms in classes. - Three participants in the pattern: Originator (Editor), Memento (Editor State), and Caretaker (History). - Explanation of how the Editor, Editor State, and History classes collaborate in the Memento Pattern. 54:32 🖌️ *State Pattern Introduction* - Introduction to the State Pattern for building a drawing application with different tools. - Explanation of the need for the State Pattern in handling diverse behaviors based on the selected tool. - Comparison with problematic if-else statements and the lack of extensibility. 59:38 🔄 *Polymorphism in Problem Solving* - Polymorphism is introduced as a solution to the problem, building on the principles of object-oriented programming. - Discussion on how polymorphism allows an object to take on different forms based on its type. - Implementation of polymorphism using interfaces and abstract classes. 01:03:02 🏹 *State Pattern Implementation* - Implementation of the State Pattern, introducing an abstract class/interface 'Tool' and concrete tool classes (e.g., SelectionTool, BrushTool). - Integration of the State Pattern in the Canvas class to handle mouse events based on the selected tool. - Demonstration of how the State Pattern makes the application more maintainable and extensible. 01:08:45 🔄 *Open-Closed Principle* - Introduction to the Open-Closed Principle. - Explanation of the principle: Classes should be open for extension but closed for modification. - Illustration of how the State Pattern adheres to the Open-Closed Principle, allowing easy addition of new tools without modifying existing code. 01:09:47 🚫 *Misuse of Design Patterns* - Cautionary note on the potential misuse of design patterns. - Example of a developer misapplying design patterns without considering the context and creating unnecessary complexity. - Emphasis on understanding the problem context before applying design patterns to avoid over-engineering. 01:10:59 🧠 *State Pattern Introduction* - Introduction to the importance of simplicity in solving problems. - Advice on not blindly applying design patterns without understanding the problem. - Mention of demonstrating the abuse of the state pattern in a stopwatch app. 01:11:30 🚦 *Abusing the State Pattern in Stopwatch Implementation* - Implementation of a simple stopwatch using a boolean to represent states. - Running and testing the basic stopwatch functionality. - Introduction of the idea that this simple implementation will be refactored using the state pattern. 01:13:03 🔄 *Refactoring with the State Pattern* - Introduction of the state pattern with the creation of a "State" interface. - Creation of "RunningState" and "StoppedState" classes implementing the state interface. - Explanation of how the state pattern simplifies code structure by centralizing decision-making. 01:17:24 🛠️ *Implementation Details of State Pattern* - Explanation of how state classes use constructors and references to manage state transitions. - Demonstration of how the main class sets the initial state and delegates the click functionality. - Comparison of the refactored state pattern implementation with the initial simple implementation. Made with HARPA AIbne
@victorbouffier3580
@victorbouffier3580 2 года назад
Thanks Mosh. You have a very clear way of presenting ideas to make them easily understandable. Kudos!
Далее
8 Design Patterns | Prime Reacts
22:10
Просмотров 418 тыс.
Вопрос Ребром - Серго
43:16
Просмотров 1,8 млн
Data Structures and Algorithms for Beginners
1:18:43
Просмотров 1,8 млн
Software Engineering Job Interview - Full Mock Interview
1:14:29
Microservices are Technical Debt
31:59
Просмотров 404 тыс.
Decorator Pattern - Design Patterns (ep 3)
54:35
Просмотров 484 тыс.
How Senior Programmers ACTUALLY Write Code
13:37
Просмотров 1,5 млн
C++ Tutorial for Beginners - Learn C++ in 1 Hour
1:22:56
Observer Pattern - Design Patterns (ep 2)
49:47
Просмотров 565 тыс.
SOLID Principles: Do You Really Understand Them?
7:04
Просмотров 181 тыс.
TypeScript Tutorial for Beginners
1:04:28
Просмотров 1,3 млн
Strategy Pattern - Design Patterns (ep 1)
35:11
Просмотров 1,5 млн