Re: Bloc Space within a Space
Posted by
Sean P. DeNigris on
Feb 14, 2016; 6:26pm
URL: https://forum.world.st/Bloc-Space-within-a-Space-tp4877474p4877492.html
Aliaksei Syrel wrote
Space is not something you want to embed in another space.
That's where you're wrong ;-) That's exactly what I want to do!
Aliaksei Syrel wrote
Space manages UI thread, event fetching, alarms and many other low level stuff
Yes! That's all the stuff I want to stub out and control. Imagine I want to control time in my space e.g. run a simulation at 10x speed...
Aliaksei Syrel wrote
Universe contains spaces and there can be only one running space at a time - read
there can be only one active UI thread and event fetcher in the system.
Yes, this is what I am disappointed before. Of course that makes sense in practice in the normal operation of the system, but limits one's creativity to pre-approved uses. IMHO this is the kind of coding-for-one-world-view that made Morphic infuriating to really try to reinvent.
Aliaksei Syrel wrote
You can create a separate 'Bloc-Test' space and do testing there.
I should have been more specific. Yes, one can do functional testing, but one can not stub out the dependencies and unit test properly. In fact, IMHO this area of the design is a symptom of lack of TDD.
Cheers,
Sean