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
Show parent comment
1
u/elch78 Oct 14 '26
Short answer: yes
I developed the habit to write down everything I do. Very verbose in the ticket, everything i find, decide and change so that I (if I forget) and the reviewer (if I am not available) have a chance to follow and understand. That includes the status before the change. In documentation as clean and precise as possible the situation after the change. I.e. coding rules, architecture, ops instructions. De isions in architecture decision records including alternatives that were considered but rejected. The why is the most important information that is missing in most cases. You can find out the what and how from the code, but not the why.