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

Software and Development

Stub

Also known as: Code stub

1 min read Updated November 10, 2026

Definition A placeholder piece of code that stands in for something not yet built.

What it is

A stub is a placeholder piece of code that stands in for something not yet built. Stubs let developers test the rest of a system before a part is finished, for example a fake payment response.

Why it matters for your business

They allow teams to work in parallel and test early.

Real-world example

A developer stubs the M-Pesa response to test the checkout before getting live credentials.

Design Corner tip

Remove test stubs before the site goes live.