Use logical reasoning to predict the behaviour of simple programs
Computers are deterministic machines. We can predict exactly how they’ll behave through repeated experience or by developing an internal model of how a piece of software works. Stepping through the program can give a clear sense of what it does, and how it does it, giving a feel for the algorithm that’s been implemented.
In the classroom, getting one pupil to role-play a floor turtle or screen sprite while another steps through the program can give a far more immediate sense of what’s going on. When working with a computer, encourage pupils to make a prediction about what the program will do before they press return or click the button, and to explain their prediction logically; this is part of computer science.
Logical reasoning also implies that pupils are following a set of rules when making predictions. Pupils who step outside the boundaries of these rules are not using logical reasoning. A pupil who expects a roamer to jump doesn’t understand the constraints of its programming language or hardware.