Activity 01
Pairs: Pattern Hunt in Code Snippets
Pairs receive code snippets with repeated logic, such as loops in sorting tasks. They highlight patterns, discuss abstractions, and rewrite as generalized functions. Pairs then swap and test each other's code on new inputs.
How can we strip away unnecessary details to focus on the core logic of a problem?
Facilitation TipDuring the Pair: Pattern Hunt in Code Snippets activity, provide code snippets with subtle inconsistencies so students focus on structural patterns rather than surface features.
What to look forPresent students with a series of images depicting different types of vehicles (car, bus, train, bicycle). Ask them to identify common patterns and then abstract these into a single concept representing 'transportation'. What essential features did they keep, and what did they discard?