Skip to main content

Selective Exercise Lanes

Use these short lanes only after completing the matching guide pages. They reinforce the Semester 0 basics without turning this module into the complete Clean Code course.

Lane 1: Readability and Intent​

Audit one small file for ambiguous names, redundant comments, and visual grouping. Make at least three changes and justify each in one sentence.

Optional support:

Lane 2: Function Honesty​

Choose one function with mixed responsibilities, too many arguments, or a hidden side effect. Refactor it in small steps while preserving behavior.

Optional support:

Lane 3: Tests as Explanations​

Write or improve three tests so each name states one behavior. Make one structural change to the production code and show that the tests still pass.

Optional support:

Completion Checklist​

  • Completed all three short lanes
  • Recorded at least one mistaken assumption and its correction
  • Preserved behavior while improving structure
  • Deferred class, system, and review-level analysis to Semester 3