News for hackers. Stuff that matters.
Re:IOS Boilerplate: A base template for iOS apps by xinsight on Wednesday September 14, 2011 @03:11PM (#2997469)
I used to love the Singleton (anti-)pattern. It's a huge improvement from using your AppDelegate as a global storage area, but it still encourages sloppy code. I find it the code much cleaner when you pass in the objects a class needs instead of calling up the singleton from all over the place.

There are some legitimate uses for singletons, but if you need a singleton macro, you're probably over using it.

There are no comments on this comment yet.