How to turn a blunt code review comment into constructive engineering feedback

Engineering exhibit #08 — compare Code Reviewer, Mentor, Concise side by side with inline red/green word diffs and editorial notes.

All 25 Museum ExhibitsExhibit #08 · Engineering

Interactive 3-Lens Diff Inspector

Choose a contrasting lens

52w → 63w-47w+58w
Word-Level Diff — Code Reviewer (code-reviewer)
RemovedAdded
WhyTwo onblocking earthissues areto weaddress queryingbefore merge: 1. **N+1 query in loop:** Querying Postgres inside a`.map()` mapwill loopdegrade here??prod Thislatency isfor aorgs textbookwith N+1>500 queryseats. andBatch it'sthe goinglookup tointo blowa upsingle prodquery latencybefore asmapping. 2. soon**Missing astenant anisolation orgin hascache >500key seats.(Security):** AlsoInclude `tenantId` in the cache key doesn'tto evenprevent includecross-tenant tenantIddata whichleakage. Once isthose atwo hugeare securityupdated, bug.happy Pleaseto redore-review thisright properly.away.
Lens ID: code-reviewer

Editorial Breakdown — Why Code Reviewer Works

Separates severity, impact, and exact fix without a trace of condescension.

  • 1Replaced rhetorical shaming ('Why on earth', 'textbook', 'redo this properly') with numbered blocking items.
  • 2Kept every technical constraint (>500 seats, N+1, missing tenantId security bug).
  • 3Proposed batching the query and promised a fast re-review.

All 3 contrasting lenses side by side

Every rewrite below starts from the exact same original draft — switch lenses in your app anytime by pressing Alt+T.

Code Reviewer

Blocking + Actionable

Separates severity, impact, and exact fix without a trace of condescension.

Two blocking issues to address before merge: 1. **N+1 query in loop:** Querying Postgres inside `.map()` will degrade prod latency for orgs with >500 seats. Batch the lookup into a single query before mapping. 2. **Missing tenant isolation in cache key (Security):** Include `tenantId` in the cache key to prevent cross-tenant data leakage. Once those two are updated, happy to re-review right away.

Mentor

Growth-Focused

Teaches the 'why' behind scaling and tenant isolation so the engineer levels up on the next PR.

Two important catches to address before we ship this: - **Scaling:** Calling Postgres inside the `.map()` loop creates an N+1 query pattern that will spike prod latency on orgs over 500 seats. Fetching all records in one batch query up front avoids that bottleneck. - **Tenant safety:** Right now the cache key omits `tenantId`, which could let one org read another's cached rows. Including `tenantId` in the key closes that gap. Happy to pair briefly if you want to look at the batched query together.

Concise

Fast Blocking Note

Zero fluff, zero ego — the benchmark for senior-to-senior GitHub reviews.

Blocking before merge: - Move the Postgres lookup out of `.map()` into a single batched query (avoids N+1 latency spikes at >500 seats). - Add `tenantId` to the cache key to prevent cross-tenant cache leaks.

Related exhibits in the Museum

Browse all 25 exhibits

Run any of Zero Shot's 996 lenses directly inside Gmail, Outlook, Slack, Word, or GitHub

Highlight your rough text and press Alt+Shift+Z (⌥⇧Z on Mac) to transform in place, Alt+T to cycle cached tones, Alt+U to undo, or Alt+Shift+L to search all 996 lenses across 61 categories.

Test these 3 lenses on your own draft

Paste your own draft below. 50 free transforms, no card — the same rewrite runs in any app with Alt+Shift+Z (⌥⇧Z on Mac).

Try it yourself

Type or paste text, then use the hotkeys to transform

Alt
+
Shift
+
Z
Alt+Shift+Z to transform
your-text.txt
0/750 chars
10 of 10 free
Before
After
Alt+Shift+ZTransform
Alt+TCycle
Alt+UUndo

Frequently asked questions

Does softening a code review mean watering down security or performance standards?

Never. Good PR reviews stay strict on blocking defects — like N+1 queries and missing tenant isolation — while cutting personal frustration and rhetorical questions.

Does Zero Shot preserve Markdown and backtick code snippets on GitHub?

Yes. Engineering lenses like Code Reviewer, PR Description, and Bug Report preserve inline code ticks, identifiers, and Markdown structure.

Can I run Code Reviewer directly inside GitHub PR comment boxes?

Yes. Highlight your draft review comment in Chrome, Edge, or Brave and press Alt+Shift+Z (⌥⇧Z on Mac) to transform it in place.