THE BIG BOOK OF COMPUTING PEOAGOGY

Page 82

FEATURE

n Learning to write code can be a challenge for students, but there are evidence-based approaches to support them

Credit: Stock.adobe.com/Gorodenkoff

HOW TO SUPPORT YOUR STUDENTS TO WRITE CODE Will Grey shares some evidence-based approaches for teaching students to write code

or many children, writing code can be a daunting prospect. To help our students learn to write code, we can use a range of scaffolded pedagogies. Initially, these approaches take ownership of the code away from the students, giving them confidence to explore and experiment. Gradually, as the students gain confidence, we can reduce the amount of support until they are able to write their own programs independently. On page 70 of this special edition, I shared approaches to support pupils learning to read code. These included activities such as explaining, predicting, and tracing code, as well as live demonstrations with worked examples. Now, I’ll share some evidence-based approaches to support pupils who are learning to write their own code.

F

82

The Big Book of Computing Pedagogy

Fixing broken code

Children can find and fix common syntax, runtime, and logical errors in a piece of code. These errors might include missing brackets, missing speech marks, spelling mistakes, or missing variable declarations. Pupils can use the programming language’s translator to help find the errors by making the fixes and then running the code to test that it works. Pupils will need to be made aware of how the errors present themselves – this is unique to each translator and language and is not always obvious. For instance, in the default IDLE Python interpreter, it can be unclear where each error is located. Once pupils are familiar with a variety of common error messages, their causes, and how to fix them, they will be able to debug their own code with greater confidence

and resilience. For extra challenge, debugging exercises can be carried out on paper, where there is no feedback from the translator.

Completion problems and pseudocode We can give children partial solutions to complete. This has scope for a variety of levels of differentiation: as students progress, we can gradually leave out more code. Initially, students might be given most of the code but with parts of some statements missing. Then, we might remove statements completely. Next, we could remove several lines or complete blocks of code. Finally, we could remove all code and only provide comments to the pupils. If these comments are detailed enough, then this is like converting from pseudocode into working code.


Turn static files into dynamic content formats.

Create a flipbook

Articles inside

ART AND ALGORITHMS

5min
pages 154-155

THE INCLUSIVE CLASSROOM

6min
pages 152-153

PHYSICAL COMPUTING

5min
pages 130-131

REFLECTIONS

9min
pages 134-136

A PATH TO AGENCY

4min
pages 122-123

STORYTELLING

3min
pages 146-147

RETRIEVAL PRACTICE

10min
pages 148-151

VARIETY IN TEACHING

7min
pages 143-145

PHYSICAL COMPUTING IN THE CLASSROOM

5min
pages 132-133

DIGITAL PROJECTS

7min
pages 118-121

ASSESSMENT FOR LEARNING

4min
pages 106-107

MULTIPLE CHOICE

3min
page 111

METAPHORS AND MISCONCEPTIONS

8min
pages 108-110

PROJECT-BASED LEARNING

5min
pages 116-117

WATCH AND LEARN

5min
pages 98-99

ALTERNATIVE CONCEPTIONS

6min
pages 104-105

MODELLING FOR LEARNERS

6min
pages 96-97

VIDEOS AND SELF-EXPLANATION

3min
pages 94-95

LIVE CODING

6min
pages 92-93

WORKED EXAMPLES

6min
pages 90-91

WRITING CODE

5min
pages 82-83

PARSON’S PROBLEMS

6min
pages 80-81

READ BEFORE YOU WRITE

5min
pages 70-71

CODE TRACING

5min
pages 68-69

THE BLOCK MODEL

6min
pages 78-79

ENCOURAGING TALK

5min
pages 62-63

COLLABORATIVE PROBLEM-SOLVING

4min
pages 60-61

PEER INSTRUCTION

6min
pages 56-57

PAIR PROGRAMMING

6min
pages 58-59

GO UNPLUGGED

2min
page 49

ENGINEERING SKILLS

3min
page 41

SCRATCH ENCORE

3min
page 40

SEMANTIC WAVES

7min
pages 46-48

SCRATCHMATHS

4min
pages 38-39

LEARNING THROUGH MAKING

5min
pages 36-37

CULTURALLY RELEVANT PEDAGOGY

6min
pages 34-35

THE ‘RIGHT’ WAY?

6min
pages 14-15

THE PRIMM APPROACH

7min
pages 22-24

CODING & 21ST-CENTURY SKILLS

4min
pages 28-29

COGNITIVE LOAD THEORY

5min
pages 20-21

CONCEPT MAPS

6min
pages 10-12

CURRICULUM DESIGN

8min
pages 30-33

UDL

6min
pages 25-27

VELA CONCEPTS

2min
page 13
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.