News for hackers. Stuff that matters.
Re:A Short Cautionary Tale About Refactoring by TeMPOraL on Sunday March 21, 2021 @06:16AM (#26529385)
That's a good rule of thumb. Personally, I also add comments for the HOWs that may be relevant to users of a function/class, that cannot be easily expressed in code in the function signature or class declaration.

Things like, "relative ordering of results is not preserved", or "this function is O(n^3)".

There are no comments on this comment yet.