adventureland
adventureland copied to clipboard
Code Organisation
As we progressively get into more and more advanced code, our files are getting larger as well. Filled with auxiliary functions and variables, it's starting to become a pain to navigate our own code due to how long it is! I suggest having some kind of code organisation, perhaps the CODE page could have tabs that we can name to organise our code?
[1] I'm in the process of adding /savecode /runcode /loadcode /viewcode etc. today, they are invoked from chat, basically, they will be functional substitutes until the UI gets an improvement
[2] Seeing your request, maybe a separate "Functions" Code, that will get loaded into all your Code's could be interesting
One could write his/her own functions, then keep the main Code clean and simple
[3] There will also be an option to load external scripts with something like a load_script
method
So [1] + [3] might eliminate the need for [2], however, having [2] in an easily accessible UI would be pretty sweet too
I might add a load_code
method instead of [2] too, so one would /savecode functions
, then, in another code/script, load functions as load_code('functions')
- And when the new UI is ready, there will be a tab called "Functions" waiting there