Is it True?

Is the Singleton Pattern true?

No, it’s a model. A model is a way to think about and assess the real thing. If you could actually create a perfect representation of the real thing it would not be an abstraction of the thing it is modelling, it would be a copy of it.

A model by definition loses fidelity.

But a model is willing to trade truth for other things. Like effectiveness. Speed. Ability to be turned into a presentation deck.

So no, the ideas about the Singleton Pattern are not presented here as Truth, any more than any other model is. To wit: a model should be judged not on it’s truth factor, but on its ability to create a satisfactory result for the model creator.

Oh cool, I finally got to use “To wit” in something I am writing.