Re: Clean Object Class Design -- What is it?
Date: Sat, 21 Jul 2001 23:33:56 GMT
Message-ID: <9i544k$clb$06$1_at_news.t-online.com>
David Cressey wrote:
> I'm not sure exactly what you mean by "embedding our database into
> applications". The only way I can interpret it is to mean PRECISELY what
> the inventors of database systems in the 1970s were trying to get away
from:
> the idea that all the data definitions were buried somewhere in source
code,
> and the only way to manage data definitions was to get involved in the
> details of source code maintenance.
The systems in the 70s were *not* object-oriented.
With the arrival of objects, you have a representation of the real world which is not "buried" in code. Today people are using UML to model objects and relations between them. What is wrong about storing the evolved model without change? For me an object model is much easier to understand than a dozen of tables that are linked together. I could equally argue that a relational database "buries" the object model in tables.
Assume that you want to preserve the state of some objects in your
application for the next session or possibly send them to another place in
the world. Isn't it convenient to have a tool that does as much of the work
necessary as possible? This is what Java serialisation was created for. In
comparison to serialisation we reduce the storage overhead, make the
mechanism much faster, detect and allow changes in the class scheme, allow
memory management to control what is instantiated when and provide
funtionality to query the stored objects. What's wrong with the approach?
If you write a parser with somewhat 100 different nested classes that have a
Using insults, talking about the old-days 30-years-ago or turning
definitions like "network-model whatevers" around in circles does not change
Kind regards,
Carl
--- Carl Rosenberger db4o - database for objects - http://www.db4o.comReceived on Sun Jul 22 2001 - 01:33:56 CEST
