hard code

Write values directly

Hard code means to embed fixed values directly into software rather than making them configurable or variable.

Hard-coded data can't be changed without modifying the source code itself: The password was hard-coded into the program.

The practice is generally discouraged because it makes software inflexible and harder to maintain.

Also spelled hardcode or hard-code.

Related

permanent · build time · inflexibility · integrate · implement · compile · legacy systems · magic number · maintainability · reusability · programming · software design · technical debt · modularity · overwrite · coupling · readability · best practices

Opposites
configurability

hard codeparameterize

Define by adjustable inputs

configure · externalize · data-driven · make flexible · config file

abstraction level

hard codeparameterize

Define by adjustable inputs

generalize · abstract · modularize · decouple · inject

Family

hardcode, hardcoded, hardcoding

Familiarity
Top 500,000
Profile
Used worldwide · Timeless · Rated G