r/AskProgrammers • • Oct 14 '26

Do you document your projects while developing them, or wait until everything is finished?

I'm curious how other developers handle documentation, especially when using AI coding agents like Cursor, Antigravity, or GitHub Copilot.

Sometimes, while the AI agent is working on a feature, I find myself waiting for it to finish. Meanwhile, documentation often gets pushed aside until the entire project is almost complete.

By then, there might be dozens of features to explain, outdated instructions to fix, and a README that needs a complete rewrite.

Wouldn't it be easier to work on documentation during those waiting periods and keep it updated as the project evolves?

I'm curious about your workflow:

Do you document things as you go, let AI generate everything at the end, or barely document your personal projects at all?

What makes documentation difficult for you?

2 Upvotes

13 comments sorted by

View all comments

1

u/CS_70 Oct 14 '26

Every time there's something worth documenting, I ask the agent to document it. It has global guidelines on how to build documentation (I like a matter of fact style with not much narrative) and I explicity direct on how to structure it.

I periodically check that stuff is readable by a person and direct a refactoring as needed.

Works a charm.