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

Software and Development

Literal

Also known as: literal value, string literal

1 min read Updated November 10, 2026

Definition A value written directly in code, such as 42 or "Nairobi".

What it is

The program takes the value exactly as written. It differs from a variable, whose value can change.

Why it matters for your business

Hard-coding values like prices or tax rates as literals makes software difficult to update.

Real-world example

A developer types a 16% VAT rate directly into dozens of places, so a rate change takes many edits.

Design Corner tip

Keep rates and settings in one editable place instead of scattering them through code.