Tenth graders learn what makes a function well-designed — it does one clear job, has a descriptive name, is short and focused, and returns useful values. Good functions make programs easier to read, reuse, and debug. They sort good design from poor, then refactor a function.
Students will be able to…
What makes a function good to use, read, and reuse?
Project this and sort each into Good function design or Poor.
Tap any phase to open the teacher moves and student actions.
A function called doEverything() — is that a good idea?
Students learn.
Students practice.
Students apply.
Students close.
Aligned to the CSTA K-12 Computer Science Standards and the ISTE Standards for Students.
Use modularity and well-designed functions.
Document and name code clearly.
Construct well-structured programs.
Communicate clearly through code.
Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students.
Have students refactor a messy function into smaller ones. A printable snippet sheet is in the CS library.
Tap a card to flip it, then rate whether you knew it. Built from this lesson’s vocabulary.
A quick self-check with instant feedback, drawn from this lesson’s key terms.
A print-and-go review sheet with a built-in answer key. Tap “Show answer key” to reveal answers, or print the clean version for students.