Year 10 - Computing
Good programming practices
Programming: selection
Study Hub
This pupil-friendly study guide includes a unit summary, clear notes, common mistakes, and quick questions with answers.
Year 10 - Computing
Programming: selection
In this unit pupils will explore the benefits of good programing practices and why subroutines are used in programs. They will create conditions in programs which use arithmetic, relational and logical expressions. They will develop their understanding of selection and explore nested selection.
You will learn to explain what is meant by good programming practices and adopt these practices when writing your own code.
Good programming practice involves taking steps to make your code easier to read and understand. Variables should always have meaningful identifiers so that the reader of the code understands how they are used.
text within source code that is ignored by the compiler or interpreter, used to help programmers understand the code. Add one real device or system example to prove understanding.
Mistake: Comments are added to code to help you understand your program. Correction: Comments are used to make the code more readable to a programmer who seeks to understand it. The comments should be written in a style that would help them make sense of the program.
Browse all guides in the Year 10 Computing guide library.