trying to stop calling into the MainWindow

Lubomir I. Ivanov neolit123 at gmail.com
Fri Nov 6 16:11:41 PST 2015


On 7 November 2015 at 00:58, K. "pestophagous" Heller
<pestophagous at gmail.com> wrote:
>
> broadcast/listener pattern is one thing, but using it in *combination*
> with globally shared mutable state ("displayed_dive" in the above
> example) is really where things get fragile.
>

i agree, this has to be taken care off at some point.
it's usually OK for single threaded apps to use singletons and shared
states for isolated areas of the code base, but for more complicated
things, i'd say - invest the time and deal with the problem in the
early stages then grade on a concrete base.

lubomir
--


More information about the subsurface mailing list