Closed simake closed 6 years ago
How is this best implemented?
Making a singleton Config class would be convenient and wouldn't be too bad if I made it read-only (no risk of classes implicitly talking to each other via the global singleton class). It would still make testing difficult, however.
A singleton in conjunction with proper interfaces would be a better option (only exposing a subset of the settings to each part of the program). But that may be a bit excessive for this project.
Move configurable settings to a separate .ini file, such as what file extensions to treat as images, videos, etc.