Revise Computing
Revision notesQuestionsFor schools
Log inStart revising free
Revision notesQuestionsFor schoolsLog in
GCSE Computer Science/Supplementary programming practice/Maintainable Code

Meaningful names

301.7 Maintainable Code

Practise exam questions

Maintainable Code — Note 1 of 4

Clear and descriptive identifiers.

What you need to know

Meaningful names tell the reader what a variable or function does without needing extra comments. Code with clear names is easier to debug and maintain.

What to know

  • Use full words: total_score not ts
  • Name should describe purpose, not type
  • Functions should describe their action: calculate_area()
  • Avoid abbreviations unless universally known

Code examples

Meaningful vs unclear names
python
# Clear
student_age = 15
total_marks = 87

# Unclear
sa = 15
tm = 87
← Previous topicIPO Pattern301.6 InputNext note →Indentation301.7 Maintainable Code

Back to Maintainable Code

Specification notes for programming are in Paper 2.

Maintainable Code

Note 1 of 4

  1. 1Meaningful names
  2. 2Indentation
  3. 3Comments
  4. 4Tidy code comparison
Topic overview

© 2026 Revise Computing · revisecomputing.co.uk

Privacy noticeTermsContact

Revise Computing is an independent revision resource. It is not affiliated with, or endorsed by, OCR (Oxford Cambridge and RSA Examinations).