CodeX
Published in

CodeX

Is Singleton Pattern is bad as many told?

Before we discuss its pros and cons and whether it is bad as many people told, let recall what is Singleton Pattern.

What is the Singleton Pattern?

Intent of the Singleton pattern is to ensure a class has only one instance and provide a global point of access to it. But what problem will address in the case will have only one instance of object in…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ishan Liyanage

Ishan Liyanage

Passionate Technical Lead, Senior Software Developer and free and open source software advocate. Based in Singapore.