I've learned which functions should be small and concise. Would this rule also apply to functions like this?
def run_game(self):
process_input()
update_state()
render()
What I mean is: run_game
appears to be trying to do more than one thing at a time, but it seems to me that it is being used as an organizational unit, executing the functions that would compose the process labeled run_game
.
Does this invalidate the "one thing well" principle? Is it normal to use functions as organizational units and gather related functions in a main function?