Model design questions
See original GitHub issueThis is a placeholder for some questions about the design of a model of a dashboard.
Why does it have to be mutable? If every parameter is an Observable then there is no need to mutate the parameter (because the parameter is already a container).
How do we best specify “inner piping” of the model? While most parameters are connected directly to some UI, some are defined as a result of one or more parameters but are not directly affected by a UI. For instance the path of a save file that is composed of two inputs, or a label that depends on the state of one of the parameters, etc. I currently define these relationships after creating an instance of the model, but it would have been better to define these inside the constructor itself. Finally, these parameters that are not directly connected to a UI, they do not necessarily need to be an Observable – when they change nothing else needs to immediately happen. So they can either be a Ref
or indeed, the model should be mutable.
Issue Analytics
- State:
- Created 3 years ago
- Comments:44 (17 by maintainers)
Me every time I find a docstring in Stipple:
Shall we close this topic and open a new one for the remaining things? Part of this could also go into the Project…