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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -