Javascript Design Patterns #7 - Mediator Pattern

  Рет қаралды 20,518

DevSage

DevSage

Күн бұрын

Пікірлер
@DevSage
@DevSage 4 жыл бұрын
🤖 GitHub: github.com/pkellz/devsage/blob/master/DesignPatterns/Mediator.js 📕"Design Patterns Explained Simply" Ebook: payhip.com/b/MLtJ 💙 Twitter: twitter.com/realDevSage 📙 Ebooks: payhip.com/devsage 💥 Discord: discord.gg/BP8wPv6raA
@johnyepthomi892
@johnyepthomi892 3 жыл бұрын
Bro you’re underrated. Keep this format and bring more design pattern videos. It’s a great way to start out learning design patterns. You know how to separate the jargon from the actual concepts. Highly appreciate your efforts.
@DevSage
@DevSage 3 жыл бұрын
Thanks man
@abdelrhmanshokr7546
@abdelrhmanshokr7546 2 жыл бұрын
this is the cleanest way I've ever seen anyone explaining design patterns before amazing :)
@DevSage
@DevSage 2 жыл бұрын
Glad you think so!
@fithurriague
@fithurriague 4 жыл бұрын
Thank you for the video, I'm doing a js couse,whenever I don't understand something I come here,you make it more clear.
@rozacek
@rozacek Жыл бұрын
Great explanations. Thanks to you I used strategy pattern in my work and code became cleaner and better to read much more.
@be2wa
@be2wa 2 жыл бұрын
Stumbled upon your pattern videos now. Great explanation with the examples. Nice
@DevSage
@DevSage 2 жыл бұрын
Glad you like them!
@rudijstar
@rudijstar 5 жыл бұрын
Good stuff - yes please more design pattern videos. Thanks!
@Dhhddsisi
@Dhhddsisi 3 жыл бұрын
Your demostration is so much better than my paid course on Udemy on this topic! Thank you so much!
@DevSage
@DevSage 3 жыл бұрын
😁😁
@diegodelatorre2868
@diegodelatorre2868 4 жыл бұрын
Great videos. Very concise and focused. Definitely subscribing!
@ashotmkrtchyan6610
@ashotmkrtchyan6610 Ай бұрын
Hey! This is great! Are you planning to continue these videos and explain more design patterns?
@GSySte
@GSySte 2 жыл бұрын
Wow, it was an interesting explanation, imho the example with chatroom is convenient and maybe tend to be the best one :) Thx so much!
@fatimaiqra2169
@fatimaiqra2169 2 ай бұрын
Awesome explanation, thanks a lot sir!
@codedealers7501
@codedealers7501 5 жыл бұрын
I was about to ask if you doing more but I realised you dropped this yesterday 😅🔥👍🏾
@SocketsGuru
@SocketsGuru 2 жыл бұрын
What a great explanation and example. Greetings from México 🇲🇽🇲🇽🇲🇽 !!
@DevSage
@DevSage 2 жыл бұрын
Thanks Marco!
@audioplatform6299
@audioplatform6299 4 жыл бұрын
Appreciate your help!
@DevSage
@DevSage 4 жыл бұрын
No problem!
@robertp3596
@robertp3596 3 жыл бұрын
Great stuff, just bought your book. Great info here.
@DevSage
@DevSage 3 жыл бұрын
Appreciate it. My plan is to push it out in the next few days
@mohamedeltaquee5236
@mohamedeltaquee5236 2 жыл бұрын
Man you nailed it Thank you
@DevSage
@DevSage 2 жыл бұрын
You're welcome
@clingyking2774
@clingyking2774 Жыл бұрын
I think this is the way I naturally think when writing code.
@PhilanJames
@PhilanJames 5 жыл бұрын
I enjoyed this tutorial. I see myself making a vueJS app using this pattern and concept.
@DevSage
@DevSage 5 жыл бұрын
Appreciate you man
@jeanmarcpourchel307
@jeanmarcpourchel307 4 жыл бұрын
Very good explanation as always ! Are you going to explain all design patterns from the GOF ? If so, it'll be great if you could make a video about the fly weight patern in javascript. Thanks again for all your videos. Short and well explained....perfect ! !
@DevSage
@DevSage 4 жыл бұрын
I probably won't do all of them because some patterns just aren't very suited for javascript, but I'll definitely consider the flyweight pattern for one of my future videos!
@theotherme9965
@theotherme9965 3 жыл бұрын
Is this the design patterns for service registry for microservices ?
@DevSage
@DevSage 3 жыл бұрын
I don't know
@robertp3596
@robertp3596 3 жыл бұрын
Question, why do you choose to use functions and add prototypes instead of creating classes? (I do a lot of python and am learning about node design patterns)
@DevSage
@DevSage 3 жыл бұрын
I suppose they could have been done either way. Ultimately, it's because the examples I used to learn these patterns for myself were written with functions and prototypes.
@andreasdevjs298
@andreasdevjs298 5 жыл бұрын
Thanks for the video! Its time to.. Pub/Sub pattern!!
@mohamedeltaquee5236
@mohamedeltaquee5236 2 жыл бұрын
Please explain stat pattern on web pages changing Thank you
@Cognitoman
@Cognitoman 5 жыл бұрын
I like the PubSub a little more, its less coupled and easier to think about. Although this pattern is great for an actual chat system
@nenozidic1549
@nenozidic1549 3 жыл бұрын
Hey DevSage! I've got a question. What is the main difference between The Observer Pattern and The Mediator Pattern? When to use which? I've read in Addy Osmani's book, called ,,Javascript Design Patterns", they are very similar methods but I didn't get the point right when to use first or second pattern. Thank you!
@aldwincinco1792
@aldwincinco1792 Жыл бұрын
Chatroom is not doing some routing, aren't you supposed to use the chatroom members property to find the toMember?
@nafisnawalnahiyan5032
@nafisnawalnahiyan5032 4 жыл бұрын
Thank you! You are a great teacher !
@perschonca
@perschonca 2 жыл бұрын
i before E except after C! Music to my ears lmao
@giampieropagliara1896
@giampieropagliara1896 4 жыл бұрын
Hi to me in console.log from this result: $ {fromMember.name} to $ {this.name}: $ {message} it doesn't give me dialogues, as output, where I'm wrong. thanks
@DevSage
@DevSage 4 жыл бұрын
Not sure. Compare your code to the code in the Github
@manibharathipattilingam3582
@manibharathipattilingam3582 3 жыл бұрын
I think you have missed to wrap with backtick ‘’
@manibharathipattilingam3582
@manibharathipattilingam3582 3 жыл бұрын
Thank you for the wonderful video. It helps a lot:-) Can we make Chatroom members object to Array type
@DevSage
@DevSage 3 жыл бұрын
Yes I suppose you could. That might complicate things a little though
@Tony.Nguyen137
@Tony.Nguyen137 8 ай бұрын
Pls more pattern
@anthonybendeler947
@anthonybendeler947 3 жыл бұрын
Really not a fan of your code formatting style but love your explanation of patterns :)
Javascript Design Patterns #8 - Visitor Pattern
7:38
DevSage
Рет қаралды 18 М.
Refactoring a React component - Design Patterns
15:19
Cosden Solutions
Рет қаралды 101 М.
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Mediator Pattern - Reduce Chaotic Dependencies
15:47
git-amend
Рет қаралды 10 М.
Mediator - DESIGN PATTERNS (C#/.NET)
16:15
SingletonSean
Рет қаралды 3,5 М.
Adapter Pattern - Design Patterns (ep 8)
26:36
Christopher Okhravi
Рет қаралды 248 М.
Javascript Design Patterns #6 - Proxy Pattern
12:11
DevSage
Рет қаралды 28 М.
The Most Important Skill You Never Learned
34:56
Web Dev Simplified
Рет қаралды 224 М.
10 Design Patterns Explained in 10 Minutes
11:04
Fireship
Рет қаралды 2,4 МЛН
JavaScript Design Patterns #10 - Builder Pattern
11:26
DevSage
Рет қаралды 13 М.
5 Design Patterns Every Engineer Should Know
11:51
Traversy Media
Рет қаралды 943 М.
The Most Important Design Pattern in React
35:04
Cosden Solutions
Рет қаралды 117 М.
JavaScript Prototypal inheritance - Tutorial
15:29
ColorCode
Рет қаралды 87 М.