According to Is it OK to split long functions and methods into smaller ones even though they won't be called by anything else?, I should split long functions into smaller functions even if they are used once only, but my question is , how should I call the extracted functions?
Style 1: centralize them
callFunctions(){ function1(); function2(); function3(); } Style 2: call it one by one:
function1(){ . . . function2(); } function2(){ . . . function3(); } Which style should I use?