Module 3 – AI-Assisted Coding and Code Review

Learning outcomes

Use inline assistants and chat tools without sacrificing engineering judgment, security, or maintainability.

Workflow

  1. State the smallest safe change.
  2. Ask for a plan before code when multiple files are involved.
  3. Generate or update tests with the implementation.
  4. Review every diff, dependency, migration, and command.
  5. Run formatting, linting, type checks, tests, and security checks.

Review checklist

  • Does the code match the project architecture?
  • Are error paths, concurrency, cancellation, and resource cleanup handled?
  • Are secrets, personal data, and authorization boundaries protected?
  • Are APIs and dependencies real, supported, and correctly versioned?
  • Do tests verify behaviour rather than simply mirror the implementation?

Lab 3

Use an assistant to refactor a small service. Require a baseline test run, an implementation plan, a minimal diff, new edge-case tests, and a final verification report. Reject any change you cannot explain.