Name: Anonymous 2009-12-28 1:42
What is your favorite design pattern and why?
I dislike MVC but I keep using it!!!
I dislike MVC but I keep using it!!!
init() call before the first use (which is prone to programmer error) or checking for a valid instance every time a related function is called (which is wasteful). +sharedInstance exploits the type system to force an initialization check only when necessary.