3 ms·
Singletons are easy to implement, simple to understand and have no performance penalties. They don't need to be defended. If they work for your project, use th
by rdwallis 14y ago
Singletons are easy to implement, simple to understand and have no performance penalties. They don't need to be defended. If they work for your project, use them.
- masklinn 14y ago> Singletons are easy to implement, simple to understand and have no performance penalties. Unless there's any concurrency to the system, that is. Then they're shared state (as fraught with peril as any shared state) except they're shared state which can be broken/corrupted straight from the initialization.