Problems? Is your data what you think it is? | |
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?? |
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).
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.
Update: Judging by the reply it looks like I was misinterpreting herveus, hence stricken text.
In Section
Meditations
|
|