We're a place where coders share, stay up-to-date and grow their careers.
If I may, I'd like to shamelessly plug my post about another valid usage of Singleton pattern 😛
The gist is that, Singleton pattern works great in combination with a Null pattern (where the null object is implemented as a singleton).
If I may, I'd like to shamelessly plug my post about another valid usage of Singleton pattern 😛
The gist is that, Singleton pattern works great in combination with a Null pattern (where the null object is implemented as a singleton).
A valid usage of Singleton Pattern (with Null object Pattern)
Sung M. Kim ・ Jul 7 '18 ・ 2 min read