Hi guys! On 10/21/2012 03:12 PM, Mariano Martinez Peck wrote:
On Sun, Oct 21, 2012 at 2:38 PM, Igor Stasenko <siguctua@gmail.com <mailto:siguctua@gmail.com>> wrote:
On 21 October 2012 13:39, Denis Kudriashov <dionisiydk@gmail.com <mailto:dionisiydk@gmail.com>> wrote: > Hello > > > 2012/10/21 Igor Stasenko <siguctua@gmail.com <mailto:siguctua@gmail.com>> >> >> i now modelling a system logger (to replace .changes file), and since >> i having no better idea, >> i'll try to use object literals for it. > > > Do you see Deltas project?
Sure i know about deltas. I was hacking it. :)
> I think one of the proposals was .changes file replacement
not exactly. it is more changeset replacement. What i am doing is a bit orthogonal: it is a facility to recover lost changes. All of the sources will be held inside image.
Well, Denis is right - Matthew was especially interested in that aspect (replacing the .changes file) IIRC. And I am not sure it is "a bit orthogonal". I mean, it's about logging changes to the image. The old ChangeSet implementation was not at all useful since a ChangeSet (contrary to popular belief) didn't actually *hold changes*. It just pointed to a method. But Deltas do completely "hold changes" - just like the .changes file does. Now, of course, the beauty of Deltas and its implementation of the various Change objects was that they held *all* state of the changes - enough to do undo. For example, if you did "aClass removeFromSystem" (pseudo code) - then it actually logged *all* code for aClass (enough to recreate it if you wanted to undo).
But one very common case to recover lost changes is when the image is broken... so if you store the stuff in the image...
IMHO a Delta which is backed by an external "store" of any kind (database, file using ehrm... Tirade? :) I created it for this *specific* use case!!!) - can totally replace a .changes file. regards, Göran PS. Please do not reinvent *every* wheel we come across - if you are serious about making proper change logging - do it *at least* as capable as Deltas is/was.