Mission 02 Mission 02 Code Review Practice Guide
📥 Practice Input
- •
day6_meeting_notes.md(meeting minutes)
💾 Practice output (Output)
- •
day6_code_review.md
1. Story and practice background
The learner implements the dashboard reservation control logic and requests Codex to receive a full audit by a professional code reviewer of the final source code that was written in a somewhat haphazard manner. The improvement recommendations that were pointed out are fully integrated into the modified code and a high-quality code refactoring version is submitted.
2. Learning objectives
- Completed code is strictly diagnosed according to AI multiple-choice evaluation indicators (readability, redundancy, encapsulation, etc.).
- Understand concerns about namespace contamination of global variables and points about computational complexity.
- Based on the feedback, we update the source code into an encapsulated module format and build review notes.
🛠️Practical guide to follow along
- Create file for practice: Click the download button below
day6_meeting_notes.mdfileautomation/Save it within the folder. - Request a multifaceted code review: Send the source code to Codex Client and instruct it to review the readability of variable names, presence of duplicate logic, and prevention of global contamination.
- Encapsulated source storage: Create and store a code review feedback result sheet (`day6_code_review.md`) along with the modular final revision improved based on AI points.
Download practice materials
Codex request prompt
Mission 02 Prompt
Please conduct a multi-faceted review of the provided dashboard status control code for global variable exposure and branch code clutter based on code quality indicators and return the final improved refactoring summary (Code Review).
4. Example results
Codex analyzes the meeting transcript and outputs normalized data entity mappings and a Mermaid ERD script as shown below.
| file name | Evaluation items | Points to note | improvement measures |
|---|---|---|---|
| day6_code_review.md | Code availability and quality audits | Abuse of global variables and complicated ternary operation branch statements | Immediately executed function (IIFE) encapsulation and state map objectification |
5. AI utilization points
- Variable scope auditing: Identify indiscriminate global variable references in code to find memory safety and conflict prevention measures.
- Alternative module design: The ternary operator provides an alternative to simplifying complex render parts into a map mapping matrix.