adventureland icon indicating copy to clipboard operation
adventureland copied to clipboard

Code Organisation

Open Deliagwath opened this issue 8 years ago • 1 comments

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?

Deliagwath avatar Oct 21 '16 14:10 Deliagwath

[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

kaansoral avatar Oct 21 '16 14:10 kaansoral