KrakenDev


Here's to the crazy ones. The misfits. The troublemakers. The Swifters.

Viewing entries tagged
right way to use a singleton

Defeating the Anti-Pattern Bully 💥 Part 1 - Singletons

In this inaugural post on my anti-pattern series, Defeating the Anti-Pattern Bully, I talk about singletons. Many blogs out there discourage the use of singletons and for the most part, I agree. However, that doesn't mean that they don't have their merits. Here, I'll show you where you should probably use them and why so many people say you shouldn't.