Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
misterbee
on July 10, 2011
|
parent
|
context
|
favorite
| on:
Google Singleton Detector
If you aren't writing an actual hardware device driver for a specific peripheral port, you are abusing Singleton.
mirkules
on July 10, 2011
[–]
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).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: