---
title: "Comment by Maxi Contieri on \"The Singleton pattern (Is singleton object safe?)\" | Hashnode"
description: "Nice article In my opinion, Singleton should be always avoided. It is as dangerous as you mention because it brings lots of coupling https://maximilianocontieri"
url: "https://hashnode.com/posts/singleton-pattern/5fc158bc2cae9c5b190b6b7d/comment/5fc259e755b779631e1acee7"
---

[Discussion](https://hashnode.com/posts/singleton-pattern/5fc158bc2cae9c5b190b6b7d)

Comment [The Singleton pattern (Is singleton object safe?)](https://hashnode.com/posts/singleton-pattern/5fc158bc2cae9c5b190b6b7d)

[Maxi Contieri](https://hashnode.com/@mcsee)

[Nov 28, 2020](https://hashnode.com/posts/singleton-pattern/5fc158bc2cae9c5b190b6b7d/comment/5fc259e755b779631e1acee7)

Nice article

In my opinion, Singleton should be always avoided. It is as dangerous as you mention because it brings lots of coupling

[maximilianocontieri.com/singleton-the-root-of-all…](https://maximilianocontieri.com/singleton-the-root-of-all-evil)

I have encountered singleton as logger many times and I wasn't able to test them (you can't test singletons)

So I wrote an article on how to decouple the logger (by removing the singleton) here.

[maximilianocontieri.com/how-to-decouple-a-legacy-…](https://maximilianocontieri.com/how-to-decouple-a-legacy-system)

I'm certain they're a lot of times when we need an object to be _well known_, and I think there are several better alternatives than making it Singleton.

I don't pretend to hijack your post. They are just my two cents.

[Samuel Johnson R](https://hashnode.com/@samiemovic)

[Nov 29, 2020](https://hashnode.com/posts/singleton-pattern/5fc158bc2cae9c5b190b6b7d/comment/5fc259e755b779631e1acee7#reply-5fc3308a2d08fb69499619a6)

That's such a good read. Gives a great clarity on how dangerous is Singleton pattern is. Thank you. :)
