Question marks over a laptop and smartphone representing a knowledge check.
Use questions to test assumptions; use evidence to resolve them.

Optional: This reference extends the course to roughly 60–75 minutes. You may go directly to the knowledge check after the comment exercise.

25-point review checklist

Correctness and logic

  1. Does the change solve the stated problem?
  2. Does every branch match the interface contract?
  3. Are boundary values correct?
  4. Are errors controlled and meaningful?
  5. Do tests prove the material outcomes?

Code quality and scope

  1. Is the change focused and free of unrelated scope?
  2. Are names clear in this codebase’s context?
  3. Are responsibilities appropriately separated?
  4. Is complexity justified by the problem?
  5. Would another maintainer understand the decision?

Security and data

  1. Are authentication and authorization both established?
  2. Is untrusted input validated at the boundary?
  3. Does data access use safe parameterization?
  4. Are credentials and identifying data minimized?
  5. Are critical invariants enforced authoritatively?

Failure, concurrency, and operations

  1. What happens with missing, empty, duplicate, or malformed input?
  2. Can two requests race between a check and a write?
  3. Are partial failures and resource cleanup handled?
  4. Is logging useful without exposing secrets?
  5. Does the change meet known performance needs without speculative optimization?

Evidence and communication

  1. Does each material requirement have observable evidence?
  2. Do tests cover rejection paths and boundaries?
  3. Is each finding classified clearly?
  4. Does each comment state location, observation, evidence, impact, and request?
  5. Does the review state what was and was not inspected?

Focused glossary

Atomic change
A focused change that can be reviewed and verified as one coherent unit.
Authentication
Establishing who a caller is.
Authorization
Deciding whether that caller may perform a specific action.
Boundary condition
An input at the edge of an allowed range, such as empty, zero, full capacity, or maximum length.
Check-then-write race
Two operations both pass a check before either completes the protected state change.
Contract
The explicit behavior, constraints, and outcomes the change must satisfy.
Deterministic test
A test that gives the same result from the same controlled conditions.
Edge case
An unusual but credible condition that may reveal incorrect behavior.
Invariant
A condition that must remain true across every valid state transition.
Parameterized query
Data access that sends query structure separately from input values.
Regression
A previously working behavior broken by a later change.
Scope creep
Unrelated requirements or changes added beyond the agreed task.
TOCTOU
Time-of-check to time-of-use: a race caused when state changes between a check and its later use.
Uniqueness constraint
An authoritative data rule preventing duplicate values for a defined key.
Review boundary
The code and evidence actually inspected, beyond which the reviewer makes no unsupported claim.

Optional reflection prompts

  • How would you review an unfamiliar framework without pretending expertise?
  • Which findings must block a deadline-driven release, and which can become follow-up work?
  • How would you explain the same risk to an engineer and to a product owner?

Answer from the fictional case or your own non-confidential experience. Do not adopt a supplied personal story as if it were yours.