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…

--

--

--

Everything connected with Tech & Code. Follow to join our 900K+ monthly readers

Recommended from Medium

What You Can Do as an AP CSA Teacher on CodeHS

How to install pfsense on your PCs and virtual machines?

Announcing: Rusty Engine

Aligned Dev Blog

Check out some of the ace accessories for #DiorSS22 by @MariaGraziaChiuri, including a red…

Design Patterns in JAVA vs C++

Running A Local PLAMP Stack

MVI Libraries, ViewModel for Jetpack Compose Screens, Camera2 and more!

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.

More from Medium

Learning of my Software Engineer Journey So Far

The International Space Station

Improving the Fibonacci Algorithm

AlphaFlow Engineering Interview Philosophy