Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Avoid the use of numerical values or "magic numbers" in code when possible. Appropriately named symbolic constants clarify the intent of the programmer. In addition, if a specific number needs to be changed reassigning a symbolic value is much easier more efficient and less error prone than replacing a specific number in the code because each case has to be checked specificallymultiple times.

Non Compliant Code Example

...