Re: How to model searchable properties of an entity
Date: Tue, 24 Aug 2004 11:56:27 +0200
"Rene Hartmann" <rehartmann_at_t-online.de> skrev i en meddelelse news:Pine.LNX.4.33.0408172158220.2005-100000_at_linux.local...
I´m sory - somehow a line was deleted from my posting, so I fix it here:
> Seems that there is some psychological problem about it. OO
> Programmers feel good if they have all their data in a single "object", no
> matter how complex that objects is and of how many sub-objects it is
> composed of.
Well... that certainly depends on the programmer. In my opinion, an object should contain information about what the object is about and nothing else. This is quite the same thing as a relational normal form and leads to the same thing: one object becomes separated into several objects.
> To them, a row in a relational table is
> a kind of "object",
Again I believe you are wrong. To many of us a a row is more like the
boost::tuple, and that name should ring a familiar bell to you.
> so they feel uncomfortable if data is spread over several rows.
> Joining these rows together appears a clumsy operation to
> them, though it's logically a simple operation and also not necessarily
> a slow one. (Though it may sometimes be slow in practice)
> Rene´ Hartmann
Received on Tue Aug 24 2004 - 11:56:27 CEST