Skip to content

Commit 98395e3

Browse files
committed
Update lesson-3-high-level-methodology.json
1 parent ddb00ef commit 98395e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/static/presentations/methodology/lesson-3-high-level-methodology.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@
124124
"leftCode": {
125125
"label": "Exploration Planning",
126126
"language": "text",
127-
"code": "Our Express API has inconsistent error handling—some\nendpoints return raw errors, others JSON, and stack\ntraces leak to production. Use ChunkHound to search for\n\"error handling patterns\" and \"error response format\"\nin our codebase. Use ArguSeek to research Express error\nhandling best practices and RFC 7807. Analyze what you\nfind, propose 2-3 standardization approaches with\ntrade-offs, and recommend one."
127+
"code": "Our Express API has inconsistent error handling—some endpoints return raw errors, others JSON, and stack traces leak to production. Use ChunkHound to search for \"error handling patterns\" and \"error response format\" in our codebase. Use ArguSeek to research Express error handling best practices and RFC 7807. Analyze what you find, propose 2-3 standardization approaches with trade-offs, and recommend one."
128128
},
129129
"rightCode": {
130130
"label": "Exact Planning",
131131
"language": "text",
132-
"code": "Add rate limiting middleware to /api/* using Redis.\nFollow the pattern in src/middleware/auth.ts.\nAuthenticated users: 1000 req/hour, anonymous: 100\nreq/hour, admins unlimited. Return 429 with Retry-After\nheader. Fail open if Redis is down - log warning but\nallow request through."
132+
"code": "Add rate limiting middleware to /api/* using Redis.\nFollow the pattern in src/middleware/auth.ts.\nAuthenticated users: 1000 req/hour, anonymous: 100req/hour, admins unlimited. Return 429 with Retry-After header. Fail open if Redis is down - log warning but allow request through."
133133
},
134134
"speakerNotes": {
135135
"talkingPoints": "Left side: discovery mode. You're not dictating the solution; you're framing the problem space and asking the agent to research and explore. Notice it tells the agent what research tools to use and asks for trade-offs. Right side: exact mode. You've already decided the approach—Redis, specific limits per user type, explicit patterns to follow, clear failure mode. No exploration needed.",

0 commit comments

Comments
 (0)