Skip to content Skip to sidebar Skip to footer
Showing posts with the label Singleton

Ways To Create A Singleton With Private Variables?

I'm trying to create a singleton that has variables not directly mutable from the outside. This… Read more Ways To Create A Singleton With Private Variables?

Module Pattern Vs. Instance Of An Anonymous Constructor

So there's this so-called module pattern for creating singletons with private members: var foo … Read more Module Pattern Vs. Instance Of An Anonymous Constructor