12
I learned that functions should be small and concise. This rule would 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 the same time, but it seems to me that it is being used as an organization unit, performing the functions that would make up the labeled process run_game
.
This invalidates the principle of "of one Thing well"? It is normal to use functions as units of organization and to gather related functions in a main function?