rspec/rules/S115/common/why-is-this-an-issue.adoc
2023-10-04 16:39:18 +02:00

10 lines
399 B
Plaintext

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.