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

Software and Development

Function

1 min read Updated November 10, 2026

Definition A function is a named block of code that does one specific job and can be reused whenever it is needed.

What it is

It can take inputs and give back a result, such as a function that adds VAT to a price.

Why it matters for your business

Reusing functions keeps code shorter and easier to fix, which lowers maintenance costs.

Real-world example

An online shop calls the same function to calculate VAT on every product page and invoice.

Design Corner tip

Ask developers to document functions and keep each one small and focused.