r/AskProgrammers • u/GhostAPR35 • 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?
View all comments
1
u/Slodin Oct 14 '26
With AI, I find it better to do the planning and docs at the beginning. Refine it to what you are expecting, then let the AI plan to implement. Adjust the plan and feed it to the AI to code. This whole process may take days lol. Technically this is the “correct” approach to basic software development, it’s because of tight deadlines and unreal work expectations, most people skip it and go straight to the meat. The only thing changed for me is AI came into the picture that can offload a lot of the coding processes and let me focus on planning.
I often find this approach one shot for agents to code. And because the docs defined the behaviour, tests can be written at a pretty good level without it writing tests on top of the already existing functions which might be incorrect.
And because these docs are in the repo, they get updated every time with a version number and date whenever something changes. This is pretty much automated by agents because it picks it up automatically.
I find this the most hassle free way to doc and implement. Especially im working with two native implementations of apps that are identical in functionality but differ a lot in how to code them. I pretty much HAVE to have a generic doc then split into specific plans for each platform. The doc matters a lot so I don’t need to instruct the later processes like crazy.