Intermediate Pronunciation #code-review #pair-programming #syntax

Reading Code Aloud

5 exercises on how to verbalize code in reviews, pair programming, and presentations — describe intent, not tokens.

Reading code in speech
  • Describe intent: "result is arr filtered where x is positive" not "arr dot filter x arrow x greater-than zero"
  • Operators: === is "strictly equals" or "triple equals" | != is "not equals" or "bang equals"
  • camelCase: getUserByEmail → "get user by email" (read as English words)
  • Type annotations: list[dict[str,int]] → "a list of dicts mapping strings to integers"
  • Regex: describe what it validates, not the raw syntax tokens
0 / 5 completed
1 / 5
You are doing a live code review and you need to read this line aloud:
const result = arr.filter(x => x > 0);
Which reading is most natural for an English-speaking audience?