Versions Compared

Key

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

Avoid the use of magic numbers in code when possible. Magic numbers are constant values that represent an arbitrary value , such as a determined appropriate buffer size, or a malleable concept such as the age a person is considered an adult , which could change from one location to anotherbetween geopolitical boundaries. Rather, use appropriately named symbolic constants clarify the intent of the code. In addition, if a specific value needs to be changed reassigning a symbolic constant once is more efficient and less error prone then replacing every instance of the value to be changed.

...