Is It Okay to Use AI for Code Comments and README Files?

0
0
Asked By MellowPine47 On

I'm a beginner developer, and my small projects often end up without comments or a README because I procrastinate writing detailed documentation. Would it be considered a problem or make the project seem low-effort if I use AI to draft the comments and README?

3 Answers

Answered By QuietOrbit6 On

Be careful with comments in particular. Comments should explain intent or a non-obvious decision, not simply restate what the code does. Automatically adding comments above every function can make a project harder to read. Write the important explanations yourself, then use AI to help polish them if needed.

AmberKite31 -

That applies to READMEs too: give the AI the project details and your preferred style instead of asking for a generic document. Otherwise it tends to produce a long overview that says very little.

Answered By BriskWalnut5 On

There is no need to avoid AI just to prove a point, especially for personal projects. It can also help with changelogs, release notes, and documenting conventions. Just do not treat its output as automatically correct, and make sure you understand and can stand behind the final documentation.

Answered By CedarFox8 On

Using AI is fine as long as you review and edit everything it produces. A README should quickly explain why the project exists, how to install or run it, and what users can do with it. AI often makes documentation overly long or generic, so make sure the final version actually reflects your project.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.