Sometimes when you write a program you need to refer to another part/or function in the comments. For example in the code below I could set two anchors "workaround1" and "workaround2" (in another file) in the comments, and make a note about ABC function with references to the relevant comments.
// this part does <<workaround1>>
a = 1;
a++;
...
// [[workaround1]] and [[file:c.java::workaround2][2]] can be removed once ABC is fixed
c = ABC();
I have two questions:
- Is there best practice for such references? How professional programmers deal with it?
- Is there a package for emacs which can facilitate navigation through a source code comments with such notes? I was thinking about org-mode extension with can work on top of (preferably any) language mode.
I'm aware about similar question on Redmine: Can I create a cross-project source reference in redmine?