Explain this code

Understand unfamiliar code, step by step.

chatgptclaude
Act as a senior engineer mentoring a junior. Explain what the code below does, step by step and in plain language. Cover the overall purpose, the key parts, any non-obvious tricks, and one thing to watch out for. Language: [lang]. Code: [paste]

How to use this prompt

  1. Tap Copy prompt above.
  2. Replace the [bracketed] parts with your own details.
  3. Paste it into chatgpt, claude.