Documentation — Junior¶
A useful README explains purpose, prerequisites, setup, common commands, verification, and where to get help. Test instructions on a clean environment.
Comments should explain why, constraints, and surprising behavior—not translate syntax. Public functions need contracts: inputs, outputs, failures, side effects, and examples.
sequenceDiagram
NewDev->>README: follow setup
README->>Tooling: run commands
Tooling-->>NewDev: verified result
NewDev->>Docs: report stale step
Docs-->>README: corrected with owner
Update documentation in the same change that modifies behavior. Remove misleading text instead of preserving it for completeness.
Test yourself¶
- Which setup step can a new teammate not infer?
- What belongs in a code comment?
- How do you verify a README?
- When should stale documentation be deleted?
Continue to middle.md.