LearnAI
Новинки AI · Код без программиста · Lesson 3/10
← To the catalog
Task

Open the black box: explain the code

Make a request so that the AI ​​explains the code clearly. Return JSON {"request":"what are you asking for","focus":"what to focus on","level":"level of explanation"}. In field level enter EXACTLY one of three values: line by line, short, simple.

Unlock access to submit solutions for instant AI review.
Understand someone else's code
💡 A piece of theory

Code you don't understand is a black box, and a black box cannot be controlled. Therefore, the second skill after “getting the code” is to get the AI ​​to explain it in human language. The same model that wrote the code can retell it at any level - from “in a nutshell” to parsing each line; you choose the depth. Tell me at what level to explain (simple, short, line by line) and what to focus on - what this part does, what can be safely changed, and what cannot be touched. Ask not only “what does it do”, but also “what will break if you remove it” - this way you quickly find which lines are critical and which are just decoration. And ask them to show you which line to enter your text or number in - then the edits won’t turn into a breakdown. The main mistake of a beginner is to silently copy the code without understanding it: the first mistake will lead you to a dead end, because you don’t know where to look. Understanding at a basic level is your insurance.

How is it assessed · passing 70

  • 1Valid JSON without text around it20%
  • 2There are fields request, focus, level25%
  • 3Level selected from acceptable15%
  • 4Request for an explanation, not a rewrite40%
Your promptClaude ⌄
🔒

Unlock access to submit solutions for instant AI review.