Replies: 3 comments 2 replies
-
The function could be written such that it takes name–value arguments with sensible default values as input with an Both of these approaches also allow for better documentation, since with a function you could call
to get the documentation on the command line, or if a class was used, you could even query for the documentation of individual properties at a time with
assuming of course that they all had their documentation comments in place. |
Beta Was this translation helpful? Give feedback.
-
Also, those calls to The only reason We should probably create an issue and a corresponding branch for removing all |
Beta Was this translation helpful? Give feedback.
-
As for saving values into A well written function that follows the principle of separation of concerns has a single well-defined job, and should not be doing a million or even two things at once. |
Beta Was this translation helpful? Give feedback.
-
People who are using command-based scripting would like to give the input parameters without GUI to the solver. However, the tool has the following lines (5-7):
These lines are pointing towards opened app. One can of course add a line, e.g., zef.dipole_app.regType.Value = 1 and problem is solved, but this has already caused a great confusion, so it would be better if they are accessible as variables. Moreover, if one want to save the settings, the values should be stored to
zef
structure in a way or another because otherwise they are gone when the app is closed.Beta Was this translation helpful? Give feedback.
All reactions