r/ComputerCraft • u/flauntin • Dec 12 '16
Nested programs or functions?
I'm writing a utility program that will give me about 20 different functions that the computer can perform all red stone related.
Each function is relatively small, is it better to split them into seperate programs to be called on or have a small api of functions that the main program can use.
Also i need the program to persist after restarts etc so what is the best way to do this.
2
Upvotes
1
u/flauntin Dec 12 '16
Sorry I'm not a programmer so my terminology sucks a bit, let me explain what I want to do.
So I realised that a computer is the cheapest of the modded red stone logic gate systems over redpower and any other timer I've found. I want to make a utility which has all the logic gates and red stone utilities I can make in one block.
I want to place the computer, run the program, select the gate and then just leave it to always work in that way. Does that make sense
So whichever gate I choose I want to persist whenever the computer restarts or reloads