LEARN 128 words
Help Me Read Someone Else's Code
You have been handed someone else's code and you do not even know where to look first. This teaches a method rather than just translating: the one-line purpose, then the entry point, the key functions, and how the parts connect. Hand it any unfamiliar file and come away with both the understanding and a reading habit you can reuse.
I need to understand some {LANGUAGE} code written by someone else. I find it hard to know where to start when reading unfamiliar code. Here is the code:
```
{CODE_SNIPPET}
```
Please teach me how to read this code systematically. Start by identifying the overall purpose of the code in one sentence. Then guide me through a structured reading approach:
1. Entry point: where does execution start?
2. Key functions or classes and what each one does
3. Data flow: what goes in and what comes out?
4. Any patterns or conventions used
Also flag anything that a beginner might find confusing or that uses an advanced technique, and briefly explain those parts. Finish with three questions I should ask myself whenever I read new code to build the habit. ⚠ human-in-the-loop: you are responsible for the results of using this prompt, not us.