hard-coding

Fixing values permanently

Hard-coding is the practice of embedding fixed values directly into a program's source code rather than making them configurable or retrievable from external sources.

A hard-coded value cannot be changed without modifying the code itself, which makes software less flexible and harder to maintain.

Developers often hard-code values during initial development for convenience, then replace them with variables or configuration files later.

The API key was hard-coded into the app, which became a security nightmare.

inflexibility

fixed

Restored or immovable

preset · hardwired · embedded · unchangeable · rigid · permanent · literal · invariable · set · explicit

antipattern

brittle

Liable to shatter

scalability · legacy · deprecated · overhead · complexity · buggy · hacks · patchwork · fixes · rework

Opposites
flexibility of values in code

hard-codingconfiguration

Arrangement of parts

externalization · user input · templating

abstraction level

hard-codingpolymorphism

Many forms, one interface

indirection · abstraction · generalizing · abstracting · generalization

flexibility of values

hard-codingconfiguring

Arranging system settings

externalizing · loose coupling · templating · abstracting

Family

hard, code, coding, coded, codes, coder, coders, harder, hardest

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