Python modularity best practices
|Added at||2016-12-22 14:12|
I've been struggling conceptually with the design of my large program. The general layout is something like this:
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.