[Aeditor-talk] RE: undo pattern

Simon Strandgaard neoneye at adslhome.dk
Wed Dec 24 00:32:52 EST 2003


On Wed, 2003-12-24 at 01:15, Wayne Rasmussen wrote:
> > From: Simon Strandgaard [mailto:neoneye at adslhome.dk]
> > On Wed, 2003-12-24 at 00:48, Wayne Rasmussen wrote:
> > > Some time ago you posted an article about this class and
> > > that you had some 110 line code to give as an example.  
> > > The link doesn't work anymore.  How could I get a chance 
> > > to see this?  Is there an  updated link?
> >
> > yes rubyforge has changed from using cvsweb to viewcvs.
> >
> > The undo/redo/macro system of 110 lines of code, see
> > 'history.rb', here:
> > http://rubyforge.org/cgi-bin/viewcvs/cgi/viewcvs.cgi/projects/core/source/history.rb?rev=1.9&cvsroot=aeditor&content-type=text/vnd.viewcvs-markup
> 
> Thank you very much.  I am looking at it right now!


If there are conceptual things you have problems understanding, then 
feel free to ask.


> > You can look at some of the other files for examples of usage.
> > For instance have a look at:
> > http://rubyforge.org/cgi-bin/viewcvs/cgi/viewcvs.cgi/projects/core/source/commands_movement.rb?rev=1.5&cvsroot=aeditor&content-type=text/vnd.viewcvs-markup
> >
> >
> > If you want to try undo/redo/macros out, I suggest you try
> > downloading AEditor.  It depends on Ruby-1.8.0  and ruby-ncurses.
> > http://rubyforge.org/project/showfiles.php?group_id=18
> >
> > Are you familiar with the Ruby programming language ?
> 
> Actually, no.  I am looking to do something in java for a friend and someone
> pointed me in the pattern direction.  It was going to be small but I not
> sure how much larger it will be getting...
> 
> thank you again for the information!  It will be helpful.
> wayne

The same primitives are available in Java. I rely on Object.clone() and
a list data structure, IIRC thats about it.

I'm curious to which kind of application you plan to implement?

BTW: Whats your first impression of Ruby, is it understandable to you?

--
Simon Strandgaard



More information about the Aeditor-talk mailing list