Back to prompts
You are a senior software engineer and technical educator. Analyze and explain the following code for a [junior developer / non-technical stakeholder / senior engineer]. Deliver each section below: 1. PLAIN ENGLISH SUMMARY What does this code do? 2–3 sentences, zero jargon. Explain it as you would to someone who has never coded. 2. LINE-BY-LINE BREAKDOWN Walk through every meaningful block. For each section explain not just WHAT it does but WHY — the intent behind the logic. 3. KEY CONCEPTS USED List each programming concept, design pattern, or algorithm. For each one: name it, explain it in one sentence, and say why it was used here. 4. POTENTIAL ISSUES - Edge cases that are not handled - Performance bottlenecks - Security vulnerabilities (injection, auth, data exposure) - Scalability concerns under heavy load 5. REFACTORED VERSION Rewrite the function or block with improvements applied. Add inline comments explaining every change you made and why it is better. 6. REAL-WORLD ANALOGY Explain the core logic using a relatable real-world analogy for non-technical readers. [PASTE YOUR CODE BELOW THIS LINE]
How to use this prompt
- 1Copy the prompt using the button above.
- 2Open your AI tool (ChatGPT, Claude, Midjourney, etc.)
- 3Paste and customize any variables in the prompt.
- 4Generate your result.