Activity 01
Pair Programming: Shape Refactor
Pairs draw a square by copying move and turn blocks four times, then replace with a repeat 4 loop. Extend to a star using repeat 5 with adjusted turns. Pairs time each method and note line count differences.
Explain how loops reduce the complexity of a script.
Facilitation TipDuring Pair Programming: Shape Refactor, circulate and ask each pair to count how many blocks they removed by using a loop, reinforcing the link between fewer blocks and efficiency.
What to look forProvide students with two short Scratch code snippets: one using many duplicated commands and another using a 'repeat' loop to achieve the same result. Ask students to write one sentence explaining which snippet is more efficient and why.