If singletons are considered bad for global state, particularly state that can affects the main execution of code, then how should global state for, say, a web framework be handled?
The immediate things that come to mind are:
- Base Url
- Base File Path
- General configs
- Logging instance
- etc
I cant see any other way than a singleton for access to these such as an App() class or similar?