figurative constant
A named constant in programming that improves code readability by replacing a literal value with a descriptive identifier.
To improve code readability, use a figurative constant instead of a magic number.
A magic number is an unexplained literal value in code, while a figurative constant gives it a meaningful name.
A general constant; 表意定数 specifically refers to a constant used to clarify meaning.
Compound of 表意 (hyōi, 'expressing meaning') and 定数 (teisū, 'constant'). The term is a direct translation of the English 'figurative constant' used in programming contexts.