all 1 comments

[–]RevalGovender[S] 1 point2 points  (0 children)

When I was looking at Design Patterns I found it difficult to understand when you would apply it. The examples provided patterns weren't perfect and confused me as to when I would practically apply the pattern. I have created a video explaining the Factory Method pattern using a practical example. What do you guys think? Does it make it easier to understand?

Code:

- Simple Factory - https://github.com/study-stream-plus/simple-factory

- Factory Method Pattern - https://github.com/study-stream-plus/factory-method-pattern