DEV Community

Discussion on: A valid usage of Singleton Pattern (with Null object Pattern)

Collapse
 
n_develop profile image
Lars Richter

Thanks for your cool post.
100% agree that there are not a lot of scenarios where a singleton is a good choice. But the "Null Object Pattern" is a good example for a useful use-case.
Keep up the great work.

Collapse
 
dance2die profile image
Sung M. Kim

You're welcome & thank you, Lars, for the comment.

I've heard lots of how Singleton is an anti-pattern for any cases. Just thought this was a refreshing concept to learn so shared :)