Design Patterns - Visitor
Channel: ProgramArtist
Date: 2017-03-17

In this episode I show the Visitor design pattern, explain when it is useful and when not. I show an example of how to implement the design pattern as well.
00:13 Motivation
01:25 The episode example description
02:18 Building the model
03:35 Describe the actions to perform on the model
06:25 Naive implementation
11:14 The issues with the naive implementation
13:11 Create visitor interface
14:18 Change the model to use the visitor
15:28 Implement the visitors
21:39 Overview of the visitor code
24:15 Some Pros and Cons of the Visitor design pattern


You can see all the code here:
https://github.com/slavik57/design-patterns

More design pattern videos:
https://www.youtube.com/playlist?list=PLtm06noQc9vn9eKjYV88-QBK0lAbDcc8g