Uncommented code
This is not C++ specific, but I'm sure we can all identify with this.
What do you do when you have to maintain code that is not commented at all? I've started a research assistant position and I've been asked to maintain some code which has the very helpful comments: The comments "Destructor -- Master of destruction" and (in the function Do_Precalculate.. which is called by "DoYourFunkyThing()) "Cunning Precalculate bit".
(Any advice is definitely appreciated, although I'm sharing this more for the comedy. The program is about 4000 lines of C/C++ code (mainly C though he throws in C++ at times for no real reason), that interfaces with some other libraries that I only need to worry about when they're used).
What do you do when you have to maintain code that is not commented at all? I've started a research assistant position and I've been asked to maintain some code which has the very helpful comments: The comments "Destructor -- Master of destruction" and (in the function Do_Precalculate.. which is called by "DoYourFunkyThing()) "Cunning Precalculate bit".
(Any advice is definitely appreciated, although I'm sharing this more for the comedy. The program is about 4000 lines of C/C++ code (mainly C though he throws in C++ at times for no real reason), that interfaces with some other libraries that I only need to worry about when they're used).
