Software development

Singletons are not your enemy

The singleton design pattern ensures that a class can be instantiated once only. It provides easy access by means of a global operation that returns this single instance. Definition of the singleton design pattern A large portion of the programming community has recognized the singleton design pattern as an antipattern that is best avoided. This recognition is strong enough that most developers won’t touch a singleton with a ten-foot pole, even if their lives depend on it. I have a problem with most extreme opinions, mainly because they are usually quite wrong. And this is one of those, a pseudo truth that is being repeated over and over again like a prayer without questioning. Some high deity in the form of a prominent developer once spoke it out… Continue Reading…