<< Home | Work
Significant time saved on documentation
| Area | Work |
| AI used | ChatGPT |
| Source | Reddit comment |
| Posted | 2023-11-24 |
The move
Use an AI model to generate technical documentation and code comments for your existing codebase.Steps
- Write your functional code.
- Paste the code into ChatGPT.
- Ask the AI to generate documentation and comments.
- Review the output for accuracy and clarity.
Prompt for your AI
Act as a technical writer. Generate clear, concise documentation and inline comments for the following code: [Paste your code here].
What happened
The user writes their own code but struggles with the time-consuming task of documenting it. They paste the code into ChatGPT to generate comments and documentation. This process saves them significant time while maintaining quality through manual review.Watch out
The AI may hallucinate functionality or misinterpret complex logic, so always verify the generated comments against your actual code.Give it to your agent
Read https://howtheyuse.ai/p/significant-time-saved-on-documentation.md and help me do this.