Singleton Design Pattern
March 7th, 2007, by Paul Lefebvre in General, Source Code
The Singleton design pattern is probably the simplest of all the common design patterns. Its purpose is also simple: to ensure that only once instance of a class is ever instantiated. You might be thinking that you could just use a module for this purpose. A module is close to a singleton, but since...
March 7th, 2007, by Paul Lefebvre in General, Source Code
The Singleton design pattern is probably the simplest of all the common design patterns. Its purpose is also simple: to ensure that only once instance of a class is ever instantiated. You might be thinking that you could just use a module for this purpose. A module is close to a singleton, but since...
