I work on legacy systems, and I used to look at the change history of files or functions that change every release in the source code, for example:
// // Rev. No Date Author Description // ------------------------------------------------------- // 1.0 2009/12/01 johnc <Some description> // 1.1 2009/12/24 daveb <Some description> // ------------------------------------------------------- void Logger::initialize() { // a = b; // Old code, just commented and not deleted a = b + c; // New code }
I'm just wondering if this way of documenting history is really used by many today? If so, how do you apply the changes in the source code - will you comment on it or completely delete it?
If not, what is the way to document these changes? If you use version control systems, does it follow that your source files contain clean source codes, with the exception of comments if necessary (there is no change history for each function, etc.)?
source share