Ask Question
23 June, 07:20

Why is the Singleton pattern commonly referred to as an "anti-pattern"?

+4
Answers (1)
  1. 23 June, 09:34
    0
    Singleton pattern is the pattern for design that is build using the global variables which creates a lot of drawback in the designing. Singleton pattern are considered with the global variable and thus cannot be bound into single unit which complexes the components in design.

    They have a loose coupled variables in design and also does not show the property of the multi-threading. These feature are responsible for the decrement in the performance and thus are not highly preferred choice for the pattern. So, it is known as the "anti - pattern".
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Why is the Singleton pattern commonly referred to as an "anti-pattern"? ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers