Hello everyone :
I hope everyone is fine. I have been loving the language simplicity and power for a few tiny projects. I have largely used it to make some fun text based games and short experiments, and it has been a fantastic experience thus far. I have arrived at an obstacle with handling data across multiple scripts, and I am hoping to get some advice from the more experienced users here.
I am working on a more complex project that requires splitting out the logic into individual scripts., one script handles user input, another handles game logic, and the third handles data presentation. My challenge is to figure out how to efficiently distribute and handle data amongst various programs.
Mini Script permanent global variables appear to be useful; but I am not sure how to include this in a modular framework. I am concerned about keeping the code clean and legible while avoiding any strange dependencies and circular references across scripts.
- What is the ideal approach to arrange a Mini Script project that includes numerous files and scripts? Should I rely on a main script that calls additional functions, or is there a better method for organising the code?
- How do you manage data moving between scripts? I'm searching for an effective approach for communicating huge quantities of data such as game status and user preferences without reducing performance and confusing the code.
- Are there any best practices or frequent hazards to be mindful of while utilising Mini Script in a modular or large-scale project?
Also I explored some topics related to this https://forums.miniscript.org/d/312-miniscript-language-161-and-command-line-miniscript-121salesforceadmin-language-161-and-command-line-miniscript-121 but I did not get the sufficient solution of my query so I would really want to get some help from a more experienced person
I am accepting any suggestions and examples you may have. I can provide some parts of my code, but I would like to get a better understanding of how to approach this before proceeding.
Thanks in advance for helping us :