Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^2: On Flyweights... (with sneaky segue to data modeling)

by adrianh (Chancellor)
on Dec 19, 2002 at 11:23 UTC ( #221085=note: print w/replies, xml ) Need Help??

in reply to Re: On Flyweights... (with sneaky segue to data modeling)
in thread On Flyweights... (with sneaky segue to data modeling)

I agree that a one-to-one mapping between objects and tables is not always a good idea (not to say it's always a bad idea either - sometimes there is a one-to-one between tables and business objects).

However, I don't think that was the point herveus was making. We're not talking about the process of mapping relational databases to objects.

herveus was saying that there can be useful insights in looking at class/object hierarchies in the context of database design and normalisation.

In particular, refactoring an object hierarchy with lots of objects with duplicate state, to one with fewer objects that share state (aka flyweight pattern) is basically normalisation under another name.

That's how I read it anyway :-)

Update: Judging by the reply it looks like I was misinterpreting herveus, hence stricken text.

  • Comment on Re^2: On Flyweights... (with sneaky segue to data modeling)

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://221085]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2022-10-01 21:42 GMT
Find Nodes?
    Voting Booth?
    My preferred way to holiday/vacation is:

    Results (5 votes). Check out past polls.