language agnostic - How to name this function -
given function:
function foo() { if (!dostep1) { return false; } if(!dostep2()) { return false; } ... // @ point, rest can fail, // overall outcome should considered success dostep15(); dostep16(); ... return true; }
i'd wrap between 2 ... inside function.
any idea name function performs mandatory steps outcome don't care about?
function mandatorysteps() { return dostep1() && dostep2() && ...; } function optionalsteps() { dostep15(); dostep16(); ... }
Comments
Post a Comment