You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Isn't the original in terms of "Principle of least astonishment"? They both seem to do much more than a "singleton" is supposed to. You'd have to read the whole class to use them, not just expect a plain simple-to-understand singleton.
Activity
hasanbayatme commentedon Aug 23, 2019
It is almost better @unitycoder, maybe we just needs to add the missing features from that singleton, instead of replacing it fully.
ajoumoki commentedon May 6, 2026
@EmpireWorld This version looks cleaner and more robust. I’m good with replacing it if tests pass—what do you think?
steinbitglis commentedon May 7, 2026
Isn't the original in terms of "Principle of least astonishment"? They both seem to do much more than a "singleton" is supposed to. You'd have to read the whole class to use them, not just expect a plain simple-to-understand singleton.