singleton, wtf?
Name:
Anonymous
2011-05-03 10:58
What is the reason for singleton pattern? It seems totally useless to me.
For example, couldn't one do the exact same with static method or namespaces with functions?
Name:
Anonymous
2011-05-03 11:12
It's a bullshit name for a global struct.
Name:
Anonymous
2011-05-03 11:45
Glorified global variable.
Name:
Anonymous
2011-05-03 13:00
Safe initialization in a multi-threaded environment.
Name:
Anonymous
2011-05-03 19:47
It's useful because it's reusable and scalable solution for enterprise environments.
Name:
Anonymous
2011-05-03 21:56
Singletons are overused by amateurs. I consider singletons to be anti-patterns in systems that should be eliminated.