Module 3 – AI-Assisted Coding and Code Review
Learning outcomes
Use inline assistants and chat tools without sacrificing engineering judgment, security, or maintainability.
Workflow
- State the smallest safe change.
- Ask for a plan before code when multiple files are involved.
- Generate or update tests with the implementation.
- Review every diff, dependency, migration, and command.
- 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.