3 ms·
Why not using git, as in every significant code section, which deserves a comment shall be commited and commented freely in the git commit message? Then what y
by ccozan 7y ago
Why not using git, as in every significant code section, which deserves a comment shall be commited and commented freely in the git commit message?
Then what you need is just a git blame(?) to visualize the current code section's comments.
Would this work?
- ivanbakel 7y agoThat would require a commit to be localised to a block of code, and even atomic commits can be split across multiple files and modules. Plus, you would end up in a conflict between recording history and recording the present. What happens if you replace a complex method call across a codebase? The comments should explain the call, but the commit message needs to record how the call changed, and why - which you probably don't care about when coding.