I've been struggling conceptually with the design of my large program. The general layout is something like this:
def mainFunc(parm_1, parm_2, ..., parm_n):
# do step 1
# do step 2
# ...
# do step m
My question is this: Should I make each step its own function? I'd never want to call any step as a function outside of mainFunc. So, alternatively, would it be better to make each step a snippet? What's the practical difference between calling a function and executing a snippet which does the same thing? (Assuming of course that any unneeded variables are deleted at the end of the snippet.)
I truly don't know which approach is better in the long run. Any suggestions would be greatly appreciated.