Why I Don't Like Singletons - Drawbacks and Alternatives

Why I Don't Like Singletons - Drawbacks and Alternatives

The Cherno via YouTube Direct link

- Removing lazy loading to make initialization explicit

10 of 11

10 of 11

- Removing lazy loading to make initialization explicit

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. 1 - Comments and the Community
  2. 2 - The Comment
  3. 3 - Singletons and Context
  4. 4 - Lazy Loading
  5. 5 - Why are singletons "bad"?
  6. 6 - Having a "global variable" is "better"
  7. 7 - Reviewing Meyers' Singleton
  8. 8 - Improving our singleton to make shutdown explicit
  9. 9 - Not storing our instance in static storage
  10. 10 - Removing lazy loading to make initialization explicit
  11. 11 - The "global" situation - my solution

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.