wayneph
02-06-2006, 12:23 PM
OK, I'm currently working on a project where I will want to be able to do some track and view changes on some text that is put in by users. I've currently got a couple different ideas, but am looking for some other suggestions as well.
Idea 1: Store the complete text for all versions. Then use a comparison similar to Source Safe to iterate through the lines and determine what changes have been made.
Idea 2: Store all iterations together using XML to insert modifications. The main document will be stored, and then there can be a section for additions or deletions that can be tagged with the users name and updates.
Overall, I like idea 2 better, but i'm still very vague on the options and details setting this up. The reason I like it, is because I will be monitoring changes from multiple users on the same document, and it could get fairly slow comparing a bunch files for differences each time. It would also take a lot more space to store the entire text again, even if only one line has changed.
The last idea was to try and use Source Safe from with in my application. This isn't a "last resort", but it seems awfully similar to Idea #1, and I think I would be forced to write the files to the filesystem in order to get VSS on it. If I can prevent having to write the files to the drive I would much prefer that.
In the end the original submitter should be able to see their original version, a list of suggestions from an unknown number of "modifiers" and be able to accept or reject any suggestions. Currently they are printing out the file and walking it around the office.
Any ideas welcome.
Idea 1: Store the complete text for all versions. Then use a comparison similar to Source Safe to iterate through the lines and determine what changes have been made.
Idea 2: Store all iterations together using XML to insert modifications. The main document will be stored, and then there can be a section for additions or deletions that can be tagged with the users name and updates.
Overall, I like idea 2 better, but i'm still very vague on the options and details setting this up. The reason I like it, is because I will be monitoring changes from multiple users on the same document, and it could get fairly slow comparing a bunch files for differences each time. It would also take a lot more space to store the entire text again, even if only one line has changed.
The last idea was to try and use Source Safe from with in my application. This isn't a "last resort", but it seems awfully similar to Idea #1, and I think I would be forced to write the files to the filesystem in order to get VSS on it. If I can prevent having to write the files to the drive I would much prefer that.
In the end the original submitter should be able to see their original version, a list of suggestions from an unknown number of "modifiers" and be able to accept or reject any suggestions. Currently they are printing out the file and walking it around the office.
Any ideas welcome.