Skip to content
Design Corner Knowledge Base ← Back to designcorner.co.ke
Knowledge Base

Software and Development

Hard-Coded

Also known as: hardcoded, hard coded

1 min read Updated November 10, 2026

Definition Hard-coded means a value is written directly into the program instead of being a setting you can change.

What it is

Hard-coded means a value is written directly into a program instead of being kept as a setting that can be changed. If a price, phone number or password is hard-coded, only a developer editing the source can change it. It is the opposite of making something configurable.

Why it matters for your business

Hard-coded values make updates slow and costly. Hard-coded passwords are also a serious security risk.

Real-world example

A website has the old M-Pesa till number hard-coded on 12 pages.

Design Corner tip

Ask developers to keep prices, contacts and keys in settings.