You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The source material includes code blocks that have been transformed into audio-appropriate descriptions with tags like:
370
+
- [INEFFECTIVE CODE EXAMPLE: ...] - Shows what NOT to do
371
+
- [EFFECTIVE CODE EXAMPLE: ...] - Shows the correct approach
372
+
- [CODE PATTERN: ...] - Demonstrates a structure or template
373
+
- [CODE SPECIFICATION: ...] - Lists requirements or constraints
374
+
- [CODE EXAMPLE: ...] - General code reference
375
+
376
+
HOW TO NARRATE CODE IN DIALOG:
377
+
378
+
✓ DO: Narrate the code's structure and intent in natural language
379
+
Example: "The effective version is a TypeScript function called validateEmail that takes an email string and returns an object with a valid boolean and optional reason. It has three specific constraints: reject multiple @ symbols, reject missing domains, and accept plus addressing."
380
+
381
+
✓ DO: Explain what the code demonstrates pedagogically
382
+
Example: "This code pattern shows how starting with a function signature and type annotations helps the AI understand exactly what you want."
383
+
384
+
✓ DO: Connect code to the conversational point being made
385
+
Example: "See the difference? The ineffective prompt just says 'validate emails', but the effective version specifies the RFC standard, lists edge cases, and defines the return structure."
386
+
387
+
✓ DO: Use code as concrete examples to back abstract discussions
388
+
Example: "When I say 'be specific', here's what I mean: instead of 'handle errors', write 'throw ValidationError with a descriptive message for each of these five cases'."
389
+
390
+
✓ DO: Compare code blocks when showing ineffective vs effective patterns
391
+
Example: "The first version gives no context, just 'Write a function that validates emails.' The second version specifies TypeScript, references RFC 5322, lists three edge cases, and defines the exact return type."
392
+
393
+
✗ DO NOT: Skip over code blocks - they're pedagogically important
394
+
✗ DO NOT: Say "there's a code example here" without describing what it shows
395
+
✗ DO NOT: Lose the specificity that the code demonstrates
396
+
✗ DO NOT: Read code character-by-character or line-by-line
397
+
✗ DO NOT: Use phrases like "the code shows" without explaining WHAT it shows
398
+
399
+
COMPARING EFFECTIVE VS INEFFECTIVE CODE:
400
+
When you see both [INEFFECTIVE CODE EXAMPLE: ...] and [EFFECTIVE CODE EXAMPLE: ...]:
401
+
1. First, describe what's wrong with the ineffective version (vague, missing context, unclear requirements)
402
+
2. Then, contrast with the effective version (specific, constrained, clear expectations)
403
+
3. Explain WHY the effective version works better (helps AI understand intent, reduces ambiguity, produces better results)
404
+
4. Make the contrast explicit and compelling
405
+
406
+
EXAMPLE DIALOG FOR CODE BLOCKS:
407
+
Alex: "Let me show you the difference between an ineffective and effective prompt. The ineffective one just says 'Write a function that validates emails.' That's it. No language, no specification, no edge cases."
408
+
409
+
Sam: "So the AI has to guess everything - which TypeScript or Python, which validation standard, how to handle plus addressing..."
410
+
411
+
Alex: "Exactly. Now look at the effective version: 'Write a TypeScript function that validates email addresses per RFC 5322. Handle these edge cases: reject multiple @ symbols, reject missing domains, accept plus addressing. Return an object with a valid boolean and optional reason field.' See how much clearer that is?"
412
+
413
+
Sam: "That's night and day. The second version gives the AI everything it needs - language, standard, edge cases, return type."
414
+
184
415
CRITICAL: CONTENT DEDUPLICATION REQUIREMENTS
185
416
186
417
The source material uses pedagogical reinforcement patterns designed for written learning:
0 commit comments