Ask Question
16 June, 07:58

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

+3
Answers (1)
  1. 16 June, 08:11
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers