Structure, naming and readability

How code is made understandable.

1What it covers

How code is made understandable. The topic covers small functions with one task, clear names, consistent formatting, the separation of settings from logic, comments that explain why, and the avoidance of copied code. It starts with a working program and ends with code that a colleague who has just joined can read and change. A worked example shows the steps. Common mistakes are noted along the way.

2Why it matters

Code is read many times for each time it is written. Clear names and small parts prevent mistakes in change. Copied code spreads a fault to every copy.

3The skill it belongs to

4Roles that use it

Updated 5 Nov 2026