On Oct 19, 2:41 pm, KiteRunne...@gmail.com wrote:
> I tried comp.object first but had no luck so thought I would try here
> (this group seems much more active):
[quoted text clipped - 26 lines]
>
> K
It sounds like the objects you pass in might follow the builder
pattern already. If you can set/reset the properties on those, then
perhaps what you really want is some factory method that produces the
object with the "common" configuration, and then have something else
configure the specifics. Of course, this API that you're forced to
work with might have been designed poorly, and you might be well off
to create an abstraction between this API and your application.
Sometimes for prototypes, this isn't worth it, but once you get into a
larger production code base, the abstraction can be invaluable.
Hope this helps,
Daniel.
--
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>