Code maintenance: accessing global settings properties from session objects #1302
Labels
code maintenance
For issues relating to code maintenance and quality
Milestone
We currently pass config settings values into session objects in two completely different ways:
2 doesn't really make sense. These properties don't change per session; they're global properties which remain unchanged for the lifetime of the backend. They should all be static.
Rather than duplicating most or all settings values as static properties on Session, however, I think it would be cleaner for us to turn
ProgramSettings
itself into a singleton which is initialised in Main and can be imported from any part of the code and used to access the settings properties directly.The text was updated successfully, but these errors were encountered: