Google Blogoscoped

Forum

Google develops Java bytecode Analyzer for Downloading

Search-Engines-Web.com [PersonRank 10]

Tuesday, July 24, 2007
4 years ago875 views

code.google.com/p/google-singl ...
The purpose to to detect Singletons

code.google.com/p/google-singl ...
Here is their FAQ explaining the benefits

TOMHTML [PersonRank 10]

4 years ago #

Why there is never any example?

Zim [PersonRank 10]

4 years ago #

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)

Bill Mac [PersonRank 9]

4 years ago #

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.

This thread is locked as it's old... but you can create a new thread in the forum. 

Forum home

Advertisement

 
Blog  |  Forum     more >> Archive | Feed | Google's blogs | About
Advertisement

 

This site unofficially covers Google™ and more with some rights reserved. Join our forum!