I will put a piece of code into a separate function only if I am going to call it from several places... I think there's no need to create a function for each step of the code; you can do debugging on every step even if it is in your main program. ..and certainly there's no need to combine the functions later on, this would be too much overhead...
thank you
Automated
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
To all experienced coders... do you break the steps of a complex function down to sub functions? For debugging would'nt this be easier to test each step for accuracy. Then once the final result is verfied the sub functions can be combined to a single function? Or is it best practice to keep each step seperated.
Opinions please...