Activity 01
Code Critique: Reusability Audit
Each student receives a function (drawn from a shared pool) and evaluates it against a four-criteria rubric: specific purpose, clear parameter names, predictable output, and no global dependencies. Students annotate directly on printed code, then share one finding with the class.
Analyze what makes a function truly reusable across different projects.
Facilitation TipDuring Code Critique: Reusability Audit, assign each student a different function to audit and prepare three specific observations before sharing with a partner.
What to look forProvide students with two functions: one designed for reusability and one with hidden dependencies. Ask students to work in pairs to identify the strengths and weaknesses of each function regarding reusability, then write one sentence explaining which function is more reusable and why.