On design patterns: When should I use the singleton?

The glorified global variable – becomes a gloried global class. Some say breaking object-oriented design. Give me scenarios, other than the good old logger where it makes sense to use the singleton. 22 s 22 On my quest for the truth I discovered that there are actually very few “acceptable” reasons to use a Singleton. … Read more

What is the difference between Builder Design pattern and Factory Design pattern? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 11 months ago. Improve this question What is the difference between the Builder design pattern and the Factory design pattern? Which … Read more

Naming Classes – How to avoid calling everything a “Manager”? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for … Read more

What are drawbacks or disadvantages of singleton pattern? [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago. The community reviewed whether to reopen this question 6 months ago and left it closed: Original close reason(s) were … Read more