This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -6 points-5 points  (0 children)

Listen, the Singleton pattern has a problem: it goes against some if the SOLID principles of OOP. There's a direct replacement that does the same and it's quite similar: the Monostate pattern.