Ask Question
24 July, 18:14

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

+3
Answers (1)
  1. 24 July, 18:26
    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?
Get an answer to your question ✅ “Why is the Singleton pattern commonly referred to as an "anti-pattern"? ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers