Understanding The Visitor Design Pattern

preview_player
Показать описание

Don't forget to subscribe! ➨ Website -
---------------------------------------------------------------
Welcome to my Visitor Design Pattern Tutorial! This is the last part of my design pattern video tutorial.

The Visitor design pattern allows you to add methods to classes of different types without much altering to those classes. You can make completely different methods depending on the class used with this pattern.

With both the video and the code above you should be able to start using this pattern in your code easily.

Рекомендации по теме
Комментарии
Автор

Let me know what design patterns you want to learn!

TheSimpleEngineer
Автор

This is probably the best video on the net for this pattern with a perfect example.Thank you!

mehmeterdem
Автор

He has made the pattern as easy to understand as hard it is going through other explanations on the web. Amazing!!

rahulsaxena
Автор

2:50 UML dia of Visitor Pattern
4:20 the original piece of hierarchy
6:50 why - single vs double dispatch
7:39 single dispatch
8:14 what single dispatch allows us to do
9:58 double dispatch: interaction of 2 objects
10:12 example
10:28 modify the interface: in Animal interface, add makeSound(Dog) and makeSound(Cat)
11:45 *compile error* due to not support on double dispatch

ruixue
Автор

The best explanation anyone can find on this planet. Absolutely loved it!!

chiranjeevisaride
Автор

I would love to see constructive criticism from someone who disliked this video. I think it's unbelievably helpful, especially given that you explained the whole "dispatch" thing, which is not obvious at all for beginners. Thank you very much!

ashrasmun
Автор

Problem: 12:56
Solution: 28:00
Fantastic video!

genovo
Автор

I wonder all over the internet to find the best to learn visitor design pattern and finally landed here and writing comments middle of the video, This is an awesome video so far I came across. Buddy keep it up you are the best.. !!!!

dhapategeetanjali
Автор

Just half way through the video, and I would like to say "Good Job". (y)

usamakhawaja
Автор

by far much cleaner explanation. visitor is mystrio no more. thank you

aelafdev
Автор

Very good explenation, this is the Video I was searching for the whole time

michaeljuergen
Автор

THE only video explain this pattern in the right way ! explination, diagramme and exemple with code all are perfect

zizimouad
Автор

I'm so grateful for it, good job! I always struggle with theoretical explanations and definitions, so combining them with actual examples made it so much easier to understand.

piotrpieniak
Автор

I've seen lot of videos on this pattern but this is most real life understanding video on Visitor pattern, Thanks for this amazing video... luckily found this

PrashantGangwar
Автор

This is one of the best explanations of double dispatch I have come across!

soumenadhikary
Автор

really good video. came here to understand rsql-parser visitor pattern. I can see that this pattern explains open closed principle very well

reallylordofnothing
Автор

This is the most clear explanation I have ever seen.

burakkirazli
Автор

Finally make sense. Knowing what to accomplish makes it easier to understand how to do it

deltaphilip
Автор

Best content so far!!
You won't need to read anything else after watching this.

amitsamratmaurya
Автор

This was amazing! A colleague of mine used this pattern without using "visitor" in the name. I understood the structure and how to use his design, but I didn't fully grasp everything that was going on or how he even came up with it. He mentioned visitor and here I am. Thanks for the concise but real world example.

MrEthera