Q:

Using conditions again and again or just create different methods

I have a method,
function DoThis(bool isHuman)
{
  // Do something

  if(isHuman)
  {
    //call his dad
  }
  else
  {
    //its a animal - let animal resuce know
  }

  // add some blah blah code
  // some more blah blah code

  if(isHuman)
  {
    //call his mother
  }
  else
  {
    heheeee now heeeheee
  }

  // more code

}

Should I keep Using conditions again and again or just create different methods.

A:

The obvious refactoring is to remove the duplication like this:
  if(isHuman)
  {
    //call his dad
    doCommonStuff()
    //call his mother
  }
  else
  {
    // do animal stuff
    doCommonStuff()
    // do more animal stuff
  }

Don't be afraid to introduce well-named methods, even if they are only called once. It's the single best way of increasing readability.

