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. Rather, use appropriately named symbolic constants clarify the intent of the programmer. In addition, if a specific number value needs to be changed reassigning a symbolic constant once is more efficient and less error prone than replacing every instance of specific number in the codethe value to be changed.

Non Compliant Code Example

...