hardcoding

Literal value insertion

Hardcoding is embedding fixed values directly into a program's source code rather than making them configurable or variable.

A hardcoded password can't be changed without modifying the code itself.

The practice is generally discouraged because it makes software inflexible and harder to maintain: Don't hardcode the server address—put it in a config file.

The opposite approach uses variables, parameters, or external configuration.

inflexibility

rigid

Unable to bend

unchangeable · immutable · permanent · unadaptable · unbending · frozen · locked-in · baked-in · set · constant

specificity

literal

Meaning exactly what's said

hardwired · embedded · direct · absolute · verbatim · exact · pinned · inline · raw

fragility

brittle

Liable to shatter

unstable · error-prone · buggy · unreliable · faulty · susceptible · delicate · sensitive · glitch · malfunction

inefficiency

cumbersome

Awkwardly heavy or bulky

manual · repetitive · redundant · wasteful · clunky · unoptimized · inelegant · impractical · monotonous · outdated

technical-debt

unmaintainable

Cannot be kept functional

kludge · hacky · workaround · patchwork · monolithic · coupling · entanglement · redundancy · overhead · obsolete

Categories
Opposites
flexibility/configurability

hardcodingconfiguration

Arrangement of parts

externalization · templating · externalizing · configuring · injecting

abstraction level

hardcodingindirection

Roundabout method or approach

abstracting · generalizing · generalization · abstraction · templating

dynamism

hardcodinghot-swapping

Replacing components without downtime

Family

hard, code, hardcode, hardcoded, harder, hardest, hardly, hardness, harden

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