Comment on How to properly document code?
zarlin@lemmy.world 11 months ago
The code already describes what it does, your comments should describe why it does that, so the purpose of the code.
Comment on How to properly document code?
zarlin@lemmy.world 11 months ago
The code already describes what it does, your comments should describe why it does that, so the purpose of the code.
Carighan@lemmy.world 11 months ago
Yeah, my general rule of thumb is that the following 4 things should be in the documentation:
MagicShel@programming.dev 11 months ago
Yep. I mostly document why the obvious or best practice solution is wrong. And the answer is usually because of reliance on other poorly written code - third party or internal.