terça-feira, 21 de setembro de 2004
Realization...
quinta-feira, 16 de setembro de 2004
Giving quake a second chance
I am insane.
Google Labs is hiring...
quarta-feira, 15 de setembro de 2004
Mood: understood
Some crazy thoughts...
These kinds of applications suffer from a common problem: its user (me). I am full of bugs and I do make mistakes (thanks God!).
Both sets presents me with some undo-redo use cases. However, that doesn't prevent the fact of screwing a week's worth of work my deleting some random file.
For this problem, misuses of "rm -f" command, there exists Version Control Systems (VCS) as in CVS, Subversion, BitKeeper, ClearCase, VSS, etc. For my needs of dealing with ASCII files such as source code, texts and scripts, the present VCS options rock!
But what about those more complex, binary (some even proprietary) file types? Dealing with hard drive bloat on CVS repositories with huge .jar files are some of my deepest concerns as a not so expert CVS sysadmin.
With this I come to the question: if most productivity applications have undo-redo functionalities, what keeps them from implementing diff and patch? Isn't that the true mean of the Memento Design Pattern?
Ok, ok! That's not so simple... as my Operation Research teacher used to say: "that's what separates mathematical and engineering thoughts". He used to tell us a joke: a Mathematician and an Engineer were asked to do a simple task - boil some water. Both picked up the kettle, filled with water, turned on the stove and waited for it to boil. Then, they were asked to repeat the task after some time. The Engineer took the warm kettle, turned on the stove again and put it on. The Mathematician simply said: "Ha! That's trivial! Simply throw way the water and repeat the previous stated algorithm."
To use Memento directly to solve this design problem would require the application to hold in memory every state of the objects that the user interacted with to flush only with a save operation. I am remembering Eclipse right now...
But I think that there must be a way of achieving this. Let's start by enumerating some basic use cases.
First, the application should register some kind of service in the VCS that should be able to do the diff, patch. It should also present in its UI a merge helper.
Maybe the solution is to simply not have a "save" operation. Just "checkpoint" or "flush". It should keep in memory the last n object states modified by the user in a queue. When the n+1 object state is added, the oldest one should be flushed to the VCS. Think of this as a light commit.
This would work ok with the current CVS implementation if a text editor handled this. But I think VCS would make some ground breaking things if it was dealt in the file system level and the application diff/patch service be assigned to the OS
Imagine mounting CVS as a fs! This would make some Nautilus screenshot really worth viewing!
Yes, this is a crazy thought.
terça-feira, 14 de setembro de 2004
Zen and the Art of Motorcycle Maintenance
This, as said on the blog, should be a book about values and morals, in a reality of today: technology, globalization and every other buzz-social-science word.
The title of put on my not-so-short term memory for further analysis. Pirsig should have persued a carreer on Advertisement, it is a difficult name to forget.
I decided to give it a go and buy the book when I watched Confidence. Somewhere between fast dialogues, one of the characters mentioned the book.
The thing that really called my attention to write this post was the fact that from a totally different context (I think it was something about readings that should be done by anyone willing to help an Open Source project) I found an ebook llink. Arg.
Fedora install fest @ work
So, as a federated Fedora fan, I am planning a fast Fedora install fest using nfs setup. This should interesting...