Singleton Pattern - the most controversial design pattern in software. Half the developers call it an anti-pattern, the other half use it every day. So who’s right?
What’s in the video (5m)
- 0:00 Singleton Pattern
- 0:27 The One President Rule
- 1:24 What is Singleton Pattern?
- 1:38 How Singleton Pattern Works?
- 2:52 When to Use Singleton Pattern?
- 3:54 Is the Singleton Pattern an Anti-Pattern?
- 4:10 Final Takeaway of the Singleton Pattern
Resources
- Full Design Patterns series: YouTube playlist
- Previous episode: https://youtu.be/m2-Hhw5jgA0
- Next episode: https://youtu.be/VAiH-JuKDBg
- Source notes / code: https://github.com/learnwithmanoj/design-patterns-simplified/blob/main/08-creational-singleton.md
For more in this series, visit the #design-patterns tag page or jump to the channel uploads list for everything else.