Everything About ___
Live briefing

Everything about Singleton pattern

Programming technique to restrict a class to a single instance

In object-oriented programming, the singleton pattern is a software design pattern that restricts the instantiation of a class to a singular instance. It is one of the well-known "Gang of Four" design patterns, which describe how to solve recurring problems in object-oriented software. The pattern is useful when exactly one object is needed to coordinate actions across a system. Wikipedia →

🧭 Start here: a 6-step reading path

  1. Read the overview: Singleton patternA 5-minute orientation
  2. Skim a recent paper: Singleton mesh patterns in multidimensional permutationsInfluential work since 2022
  3. Pick up a classic book: Objects first with JavaThe most-reprinted book on the subject
  4. Read the landmark paper: The Parametric Singleton Design Pattern.Cited 3 times
  5. Go sideways: Double-checked lockingA closely related topic
  6. Go sideways: Dependency injectionA closely related topic

📖 Definitions

Noun A creational design pattern that restricts the instantiation of a class to one object.

🗂️ The subject at a glance

  1. Common uses
  2. Implementations
  3. Criticism

🏆 Landmark papers (most cited)

🆕 Influential since 2022

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

🔗 Related topics