http://code.google.com/p/google-singleton-detector/ The purpose to to detect Singletons
http://code.google.com/p/google-singleton-detector/wiki/FAQ Here is their FAQ explaining the benefits |
Why there is never any example? |
I couldn't find at google images what a singleton is, nor at the FAQ, and I don't want to wikisearch it, so I'll go bed with the doubt. (argh) |
A singleton is a design pattern that emerges in software systems, either intentionally because of perceived benefits, or out of apparent necessity because of existing constraints. Essentially, a class will have only static members, meaning that there is only ever one object instantiated, and thus that one object can serve as global shared state for other objects.
There is lots of info available on why this is considered bad form, and I apologize if my stab isn't 100% what you're looking for. |