Skip to main content
Post Closed as "Duplicate" by maple_shaft
Post Reopened by maple_shaft

Some holdThere is a widely accepted opinion that the Singleton Pattern is always an anti-pattern. What doAs usual, there are always exceptions to the rule. Can you thinkexplain why Singleton is a bad choice in general and give an example of some valid use cases for it?

Some hold that the Singleton Pattern is always an anti-pattern. What do you think?

There is a widely accepted opinion that Singleton is an anti-pattern. As usual, there are always exceptions to the rule. Can you explain why Singleton is a bad choice in general and give an example of some valid use cases for it?

Post Closed as "Needs more focus" by Ixrec, CommunityBot
edited tags
Link
Tamara Wijsman
  • 8.2k
  • 14
  • 61
  • 95
Source Link
Fishtoaster
  • 25.9k
  • 15
  • 114
  • 154

When is Singleton appropriate?

Some hold that the Singleton Pattern is always an anti-pattern. What do you think?