Suppose you have a program that should read from a config file the settings for your program. Would you implement them with a singleton class that stores them, a class with static properties for each setting, o global variables inside a namespace? Or probably something better?
In my case I'm implementing them with globals in a namespace, although I've been taught to never use globals for anything, since I've read that the Singleton pattern is now considered even worse than them.