rspec/rules/S115/common/why-is-this-an-issue.adoc

10 lines
399 B
Plaintext
Raw Normal View History

Constants are variables whose value does not change during the runtime of a
program after initialization.
Oftentimes, constants are used in multiple locations across different
subroutines.
It is important that the names of constants follow a consistent and easily
recognizable pattern.
This way, readers immediately understand that the referenced value does not
change, which simplifies debugging.