Calculations may be constructed differently and yet accomplish the same thing. Look for instance at the following example which shows that a If statement can be replaced but simpler code:
Scenario I |
Scenario II |
|
|
|
Since either of these scenarios will return the desired results, which should be used? The deciding factor is performance. This section will explore what to do and what to avoid when creating...