Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by adrianh (Chancellor)
on Dec 19, 2002 at 11:23 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-16 15:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found