hard-coded values
nounUK /ˌhɑːd ˈkəʊdɪd ˈvæljuːz/
US /ˌhɑːrd ˈkoʊdɪd ˈvæljuːz/
Numbers or words that are typed straight into a computer program and can't change by themselves.
The game used hard-coded values for the number of lives, so players always started with three.
RELATED WORDS
OTHER MEANINGS
2. Settings written directly in code instead of being stored in a config file.
The developer replaced the hard-coded values with settings that users can edit.
3. Data that stays the same every time a program runs.
Because of the hard-coded values, the test always produced the same result.
4. Facts or numbers that are locked in and not calculated.
The report's totals were hard-coded values rather than formulas.