How to deal with global information without creating a Singleton class
Thought it might be useful to summarise some of the points from the comments here. (Note: ‘Singleton’ is a name given to the pattern of storing an instance of a class in a static property of a class, usually the same one, so here ‘singleton’ and ‘static property’ are used more or less interchangeably) Singleton … Read more