The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Common examples of Singleton I use are for:
- Caching of configuration files
- Caching of reference tables
- Pools of objects, e.g. Connection Pool
- Logging class
- Unique ID generation (e.g. based on an incremental counter)
- Services (e.g. socket based)
- Utility classes in general
I'm not sure I'd use a Singleton for any of these.
My theory of evolution is that Darwin was adopted. - Steven Wright
My theory of evolution is that Darwin was adopted. - Steven Wright
Consider Paul's rocket mass heater. |