4 ms·
I think a comment specifying the name of the algorithm would be great if you want to dig deeper when the function isn't working.
by jpablo 16y ago
I think a comment specifying the name of the algorithm would be great if you want to dig deeper when the function isn't working.
- mcantor 16y agoThat's a good point. The author said, "... a comment explaining the problem the code is trying to solve [would have helped]," which is what threw me--that's what the function name is for!
- fragmede 16y agoWhat am I doing rewriting pow? Specifically, naming the algorithm would be good, but the comment should also say why. //This is called by the frobbinator module where preconditions A and B are met, which makes this more efficient.