19 Code Recipes
Recipes are short solutions to recurring tasks.
A useful recipe should contain:
- the problem;
- required inputs;
- a minimal working solution;
- expected output;
- warnings or limitations.
19.1 Recipe template
## Task
Describe the exact task.
## Input
Describe the expected data.
## Solution
Add tested code.
## Why it works
Explain only the essential logic.
## Checks
Add assertions or validation steps.