Mutikasa
Power Member
- May 23, 2011
- 589
- 216
Let's say I have to download 30 files, rename them, then upload them, this is just an example.
Now, is it better to write 3 functions and repeat them 30 times, so it will be download all files rename them then upload all, OR, one function with all 3 jobs and repeat it 30 times, so it will be download file, rename it then upload, next file?
Now, is it better to write 3 functions and repeat them 30 times, so it will be download all files rename them then upload all, OR, one function with all 3 jobs and repeat it 30 times, so it will be download file, rename it then upload, next file?