[Cuis-dev] [RFC][Proposal] Refactoring of World Morph
Philip Bernhart
philip.bernhart at posteo.de
Fri Oct 23 12:42:14 PDT 2020
Hi,
Hilaire Fernandes via Cuis-dev <cuis-dev at lists.cuis.st> writes:
> Le 23/10/2020 à 21:18, Douglas Brebner via Cuis-dev a écrit :
>> On 23/10/2020 20:09, Hilaire Fernandes via Cuis-dev wrote:
>>>
>>> It will clarify responsibilities. You may want to make WorldMorph a
>>> singleton.
>>>
>>
>> Wasn't there mention of reintroducing Projects to Cuis a while ago?
>> Wouldn't this cause problems for that?
making the world a singleton or a project a singleton makes no sense to
me. You may want to have multiple running worlds at the same time or
multiple running projects at the same time. By modelling behaviour
this way you basically you broaden the global interfaces and make
it thus more complicated and also make the system harder to change
by introducing global state.
Singletons need to be used sparingly, like salt. Let's not introduce
the oversalted bad tastes of other systems into Cuis.
Thanks,
Philip
More information about the Cuis-dev
mailing list