121
TI-BASIC / Re: Improvements
« on: March 22, 2011, 12:00:15 am »
Okay, well I haven't done a whole lot of looking over your code yet. So these are just basic things so far.
First I might suggest to put it all into one program. It's easier to deal with when giving it to other people and groups can get wonky sometimes. Just a suggestion.
prgmNAME could be changed too
I don't know if the Disp changes affect the size any but ya. But I'm not sure why you had the If dim(rand(15)) lines. If it was just a pause effect then all you need is the rand(15). The If statement is unnecessary because the dimension of the list created will always not zero since your declaring the size to be fifteen elements.
As for prgmDELVAR I would suggest only make it the variables you use or just get rid of it all together. I just mean to run it at the beginning seems kind of redundant if you're going to be replacing all those values with the starting values and all. As it is nice to clean the program up with that type of thing it isn't necessary so it will be your call. I'll look over the rest of the code of the main program when I get a chance.
First I might suggest to put it all into one program. It's easier to deal with when giving it to other people and groups can get wonky sometimes. Just a suggestion.
prgmNAME could be changed too
Code: [Select]
a+bi
Full
ClrHome
Disp "MY","NAME","IS","FRIDAY
rand(15
ClrHome
Disp "THE","SERIAL","TIME","KILLER.
rand(15
ClrHome
I don't know if the Disp changes affect the size any but ya. But I'm not sure why you had the If dim(rand(15)) lines. If it was just a pause effect then all you need is the rand(15). The If statement is unnecessary because the dimension of the list created will always not zero since your declaring the size to be fifteen elements.
As for prgmDELVAR I would suggest only make it the variables you use or just get rid of it all together. I just mean to run it at the beginning seems kind of redundant if you're going to be replacing all those values with the starting values and all. As it is nice to clean the program up with that type of thing it isn't necessary so it will be your call. I'll look over the rest of the code of the main program when I get a chance.