Qtox: Remove singletons, be explicit about dependencies on mutable state

Created on 23 Mar 2020  Â·  3Comments  Â·  Source: qTox/qTox

There are a number of singletons in qTox, which make dependency analysis (for humans) a bit harder. Functions should generally depend only on their parameters (including this) for mutable state. We should avoid global mutable state referenced from all over the place.

C-bug D-hard M-architecture

Most helpful comment

https://github.com/qTox/qTox/pull/6216 removes the Core singleton.

All 3 comments

Nexus -- one love

The Planâ„¢ 2.0

https://github.com/qTox/qTox/pull/6216 removes the Core singleton.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Hasshu picture Hasshu  Â·  5Comments

azymohliad picture azymohliad  Â·  5Comments

HuuThanhHung picture HuuThanhHung  Â·  3Comments

Tcll picture Tcll  Â·  3Comments

dcapeletti picture dcapeletti  Â·  4Comments