hard-code

Fix in source

Hard-code means to embed fixed values or data directly into a program's source code rather than making them configurable or dynamic.

A hard-coded password can't be changed without rewriting the software.

The practice is generally discouraged because it reduces flexibility: Don't hard-code the server address—put it in a config file.

Also spelled hardcode.

inflexibility

rigid

Unable to bend

immutable · hardwired · baked-in · embedded · permanent · unalterable · brittle · unyielding · locked-in · preset

implementation

programming

Writing software instructions

constants · literals · variables · syntax · functions · binary · firmware · ROM · algorithm · developer

antipattern

brittle

Liable to shatter

monolithic · outdated · legacy · coupling · fragile · error-prone · refactor · deprecated · workaround

specificity

explicit

Clearly and directly expressed

  • literalMeaning exactly what's said
  • exactPerfectly correct, no deviation
  • preciseExactly correct, no error

concrete · absolute · defined · predetermined · particular · specified · verbatim · direct · pinpointed · discrete

Opposites
flexibility/configurability

hard-codeparameterize

Define by adjustable inputs

externalize · configure · data-driven · template · abstract

dynamism

hard-codeparameterize

Define by adjustable inputs

calculate · derive · look up · fetch · query

Family

hardcoded, hardcoding

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