in reply to High-level methods to low-level: Do I put them together?
Take the DBI and DBD architecture, for example. If you want to store your data in a database, write to the DBI interface, and let people use whichever DBD matches their database of preference. I say, write your high-level objects generically enough that they can use any helper objects with the right interface. (I guess that means, make polymorphic helper objects.)
That means that you can just flip the switch of changing which specific helper object to use, rather than recoding bits and pieces of your main object. If you're good, you can even pass a reference to your preferred helper to the main object constructor.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: (chromatic) RE: High-level methods to low-level: Do I put them together?
by jeorgen (Pilgrim) on Jul 17, 2000 at 03:03 UTC |