10 Design Patterns Explained in 10 Minutes

2,207,807
0
2022-03-14に共有
Software design patterns help developers to solve common recurring problems with code. Let's explore 10 patterns from the famous Gang of Four book and implement them with JavaScript and TypeScript fireship.io/lessons/typescript-design-patterns

#programming #compsci #learntocode

🔗 Resources

Learn more from Refactoring Guru refactoring.guru/design-patterns/
GOF Design Patterns Book en.wikipedia.org/wiki/Design_Patterns
Criticism of Design Patterns blog.codinghorror.com/rethinking-design-patterns/

📚 Chapters

00:00 Design Patterns
01:00 What are Software Design Patterns?
01:34 Singleton
02:24 Prototype
03:46 Builder
04:23 Factory
04:54 Facade
05:47 Proxy
06:45 Iterator
07:47 Observer
08:58 Mediator
09:50 State


🔥 Get More Content - Upgrade to PRO

Upgrade to Fireship PRO at fireship.io/pro
Use code lORhwXd2 for 25% off your first payment.

🎨 My Editor Settings

- Atom One Dark
- vscode-icons
- Fira Code Font

🔖 Topics Covered

- TypeScript and JavaScript Design Patterns
- Algorithm vs Design Pattern
- What is Gang of four?
- Are design patterns still relevant?
- Design patterns basics tut

コメント (21)
  • I think explaining those 10 design patterns in 10 mins is substantially much harder than trying to explain it in 60 mins. Great work as always.
  • @RyanTipps
    Refactoring Guru is awesome. I found them a while ago and read thru their refactoring & design patterns content. It mirrors the standard books on those topics. And their cartoons for each pattern are REALLY helpful.
  • Ugh, I love it when people simplify complex concepts with actual examples.
  • @artulloss
    FINALLY Design patterns are super interesting and it's especially helpful that this is in Typescript and JavaScript. Most articles about this use examples in Java and pointing out that some are overly complicated if you're using JavaScript is great. Thanks for making a video explaining all of these with pros and cons. 🔥🚀
  • I always knew if I was lazy and waited long enough that Fireship would teach me about design patterns. 😂 Truly the best source for simplifying complex concepts.
  • Funny that I'm already using most of them in some form without even knowing about them. I always avoided learning design patterns except of the simple ones because of the overly theoretical explanations in most articles. But this isn't the case in this video, everything explained in the most simpliest way with good examples. Very helpful!
  • Just started reading "Head First Design Patterns" today. Perfect timing.
  • @cjezinne
    I remember recommending this topic earlier. Glad to see it come to fruition. Exactly what I needed.
  • @raz0229
    Apart from design patterns, I learnt all the cool features that come with Typescript. Thanks Jeff
  • Could you do another one about some additional patterns? - Dependency injection - Adapter/Translator - Bridge/Opaque Pointer/Pimpl - RAII - Visitor And maybe a separate video about concurrency patterns.
  • Mind blown are the only two words I can think right now. I have been dabbling in understanding these design patterns for a while now but this is the simplest yet clear video I have come across for design patterns. Loved it!
  • Funny thing how I have used some of these patterns over the years but under different names: - Singleton: static / global class - Builder: classic object definition from C++ - Factory: I used to refer to this as "builder" and many of my older codes named factories as "builder" - Facade: encapsulation - Proxy: wrapper - Observer: event listener - Mediator: router
  • Pure synchronization! I've been studying patterns for the last two weeks and some days ago I was reading through Refactoring Guru. Now you guys, one of my favorite youtube channels, made a video about it. Thanks!
  • That’s one of your best videos thus far. I can’t imagine explaining the GoF book in 10 mins. Great job!
  • Wow, I finally understand the design patterns I took in college. I am interested now in reading more about them and using them in my future projects.
  • I always thought of design patterns as something really complex, convoluted stuff that would be so hard to learn, and only for really smart people to learn. So I was kinda intimidated to start learning it. But, this video made me realize that it looks so fun, and even I could do it. Thanks for giving me the confidence and keep making these world-class, wonderful videos.
  • Content like this, code reports and 100 seconds make this literally the best channel ive seen in many years. Been here even before you had 1 million subscribers and let me say you deserve 10 millions subs!!!
  • @mhc4124
    The way you describe this stuff is so pragmatic. As much as I appreciate everyone's work on educational content, on here, this type of pragmatic approach is exactly what is missing from the majority of videos on these topics.