Timeline for What's wrong with using a Singleton?
Current License: CC BY-SA 4.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 7, 2020 at 11:45 | comment | added | Stack Exchange Broke The Law | Disagree with the first paragraph. If you have an object which wraps the configuration, you should create one object and reuse it. However... it should be reused by passing the same object around, not by just assuming it's always the same object! That way, one day when you want two of them, it will be easier to fix. | |
| May 4, 2020 at 22:41 | history | answered | Vector Zita | CC BY-SA 4.0 |