Review a Local Web Handler
Read a deliberately simple local handler and identify defensive improvements.
Read a deliberately simple local handler and identify defensive improvements.
Prepare 20m · Build 110m · Verify 30m · Document 20m
Work only inside the folder created by Smartphone-Academy.py prepare local-code-review. Use the supplied samples or systems you personally administer.
Prepare the Termux workspace
Open Termux in the Academy root and prepare this lab with the local companion. It creates safe samples, notes and evidence files under your Termux account.
python Smartphone-Academy.py prepare local-code-reviewNo root. Use the supplied files and keep the workspace under $HOME.Practical mission
- Trace data from input to storage or output
- Find one missing validation and one unsafe error path
- Apply the smallest clear correction
- Write tests that fail before and pass after the fix
A code-review note with evidence, impact, fix and verification for each issue.
Quality gate
Analyst reflection
Which result from “Write tests that fail before and pass after the fix” would need more evidence before it could support an operational decision?
After checking the evidence, run python Smartphone-Academy.py complete local-code-review. Progress is stored locally in the Termux home directory.