News for hackers. Stuff that matters.
Re:Google Singleton Detector by misterbee on Sunday July 10, 2011 @02:27AM (#2747186)
If you aren't writing an actual hardware device driver for a specific peripheral port, you are abusing Singleton.
Re:Google Singleton Detector by mirkules on Sunday July 10, 2011 @02:42AM (#2747206)
There are many instances where you need just one instance of a class, not just a hardware device driver (for instance, when you need GPS location coordinates on a mobile device across several different classes).