Re:From STUPID to SOLID Code!
by 727374 on Tuesday July 30, 2013 @01:04PM
(#6128333)
Do you have any advice for avoiding singletons? Consider I have a singleton that does Geographical lookups and requires a substantial amount of time to load/process data mapping. This data never changes after the initial load. Would it be better to make the singleton private and to access it via a non-singleton instance of the class (or subclass) it lives in?
[ Parent
| on HN ]