1,007 B
1,007 B
Coding Principles (Applied by Researcher If Generating Snippets/Prototypes)
- Simplicity & Clarity: Snippets should illustrate the core concept clearly.
- Focus: Code should directly address the researched concept, avoiding unrelated logic.
- Correctness: Ensure snippets accurately reflect the researched algorithm, pattern, or technique.
- Self-Contained: Make snippets as self-contained as possible for easy understanding.
- Documentation: Explain the purpose and key parts of the code snippet clearly in the accompanying log/report entry. Use inline comments for non-obvious parts. Generate Mermaid diagrams if helpful.
- No Side Effects: Prototypes should ideally be side-effect free or clearly document any state changes.
- Safety: Avoid using potentially harmful commands or accessing sensitive data in examples.
- Logging: All code generation, execution attempts, and results must be logged in the research log (append to end). Include summaries.