Vladimir Ozerov wrote:The singleton is not bad a design pattern. It can be "bad" in case used incorrectly as any other design pattern.
Vladimir Ozerov wrote:First of all use of singleton has no relation to cohesion at all because terms "cohesion" and "singletone" are orthogonal to each other
As for coupling - yes it might affected, but 1) we don't know the context; 2) not always there is something to decouple; 3) even if there is something to decouple it doesn't mean that we have to do that every time
passwords must contain 14 characters, a number, punctuation, a small bird, a bit of cheese and a tiny ad.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton