Software Engineering vocabulary · Code Review and Code Quality

Hard-coded

Meaning in software engineering, with examples

/ˌhɑːrd ˈkoʊdɪd/adjectiveCommon term

In software engineering, hard-coded means: Written directly into the source code instead of coming from settings, a database or user input, so it cannot change without editing the code.

In Turkish: koda gömülü, sabit kodlanmış, elle yazılmış

How it is used

Usually a criticism in code review: 'This URL is hard-coded', 'Don't hard-code the API key.' The verb is 'hard-code'. Passwords and keys should never be hard-coded.

Example sentences

  1. The timeout is hard-coded to 30 seconds. Can we move it to the config?

  2. Someone hard-coded a test email address, so all the reports went to one person.

Common collocations

  • hard-coded value
  • hard-coded URL
  • hard-code a password
  • remove hard-coded values

More terms: Code Review and Code Quality

Practise with graded reading

Reading at the right level is the fastest way to make new words stick. Pick free English books by level: