| Lesson Plan | |
| Grade: | Date: 17/01/2026 |
| Subject: Computer Science | |
| Lesson Topic: Understand how to create maintainable programs using comments and naming conventions | |
Learning Objective/s:
|
|
Materials Needed:
|
Introduction: Begin with a short video showing a tangled code base that “breaks” when a change is made, prompting the question “How can we avoid this?” Students recall previous lessons on basic syntax and agree that readable code saves time. Success criteria are displayed: students will be able to comment purposefully and name identifiers consistently. |
Lesson Structure:
|
|
|
Conclusion: Students recap the two pillars of maintainable code—clear comments and consistent naming—by sharing one improvement they made today. An exit ticket asks them to write a one‑sentence purpose comment for a function of their choice. For homework, they must refactor a provided script, adding header comments and correcting any naming violations. |
|
Your generous donation helps us continue providing free Cambridge IGCSE & A-Level resources, past papers, syllabus notes, revision questions, and high-quality online tutoring to students across Kenya.