Apr-15-2020, 03:18 AM
yay! putting "things to calculate" in functions is generally a good thing. i can't think of a case not to though over time i might come up with one. but the case where not to define one in the current project is if that project has no need for it unless the project is a module intended to be imported by other code (i've done a few hundred of those).
if i am coding up just one function i usually add code to the same file to handle being run as a command to either run a test on the function or just do output based on command arguments.
if i am coding up just one function i usually add code to the same file to handle being run as a command to either run a test on the function or just do output based on command arguments.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.