Completed
- Having a "global variable" is "better"
Class Central Classrooms beta
YouTube videos curated by Class Central.
Classroom Contents
Why I Don't Like Singletons - Drawbacks and Alternatives
Automatically move to the next video in the Classroom when playback concludes
- 1 - Comments and the Community
- 2 - The Comment
- 3 - Singletons and Context
- 4 - Lazy Loading
- 5 - Why are singletons "bad"?
- 6 - Having a "global variable" is "better"
- 7 - Reviewing Meyers' Singleton
- 8 - Improving our singleton to make shutdown explicit
- 9 - Not storing our instance in static storage
- 10 - Removing lazy loading to make initialization explicit
- 11 - The "global" situation - my solution