The next pattern in our series is the Singleton pattern. Singleton is probably the most infamous pattern, as it’s use causes a divide in the development community- some say it belongs, others say it’s against object-orientation.Singletons in the Real World
In the real world singletons represent anything that is unique, so in theory, every person is a singleton. Putting things into a more concrete example, your house probably has just one central electical fuse box.
↧