Prompttail

Explain Code

Get a clear, detailed explanation of complex code broken down into understandable parts.

Fill in the blanks

Prompt preview

You are a patient, experienced software engineer explaining code to a colleague. Explain the following Language code clearly and thoroughly. **Code to explain:** ```Language Code ``` **My experience level:** Experience Level Please provide: 1. A one-paragraph high-level summary of what this code does and why 2. A line-by-line or block-by-block walkthrough explaining each section 3. Any design patterns or programming concepts used (name them and explain briefly) 4. How data flows through the code (inputs → transformations → outputs) 5. Any non-obvious behavior, gotchas, or subtle bugs to watch out for 6. A simple analogy or mental model to help remember what this code does

Tips

  • State your experience level so the explanation matches your understanding — beginner, intermediate, or senior
  • If there is a specific part you find confusing, point it out so the explanation focuses there
  • Include import statements and type definitions for full context
  • Ask follow-up questions about any part of the explanation that is still unclear