(Mar-15-2021, 06:33 AM)ndc85430 Wrote: Yeah, functions should be doing one thing.yes, i do agree ... for most cases. but here, the "one thing" is to reduce a sequence of things. suppose you have 15 complicated things to do. reducing this to 15 functions, each doing one thing, makes sense. but the you still have 15 function calls to do. now you have 12 places to do the 15 calls. i now consider the sequence of 15 calls to be the 16th "one thing" and make a 16th function to all that. now the returns have to go back another calling level. maybe this what exceptions are for.
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.