Pages

Saturday, 27 January 2018

Disadvantage of nested if-else

Disadvantage of nested if-else


  • When number of criteria increase complexity of maintenance of code is also increased
  • If indenting is not proper maintained then it is difficult to debugging because a programmer faces difficulty associate statement to related block.
  •  Else-if leader does not specify better interpretation of business logic to programmer than switch case.
  • Not programmer friendly while learning at beginning level.
  • Complicated structure in contrast to switch case.

No comments:

Post a Comment