On Wed, Apr 04, 2001 at 05:49:45AM -0500, Brandon wrote:
> 
> > They're handled in a crude way, hardcoded individually into InsertClient,
> > RequestClient, and SimplifiedClient, and they are handled according to
> > the current ad-hoc metadata standard.
> > 
> > Supporting the proposed version 1 metadata standard is going to be a lot
> > more complex than the current ad-hoc one and the crude nature of current
> > metadata handling will lead to a maintainability nightmare.
> 
> No, I don't think so. It might be nice to split off metadata handling into
> cleaner methods, but (and please tell me if I'm wrong) it seems to me that
> you want to register your metadata handler with Client when in fact you
> want metadata handling to go higher up in your code. You absolutely want
> to hardcode your metadata handling and you absolutely don't want to have
> this done by Client. I'll justify these statements after I sleep. :-)

The metadata handling will go higher up.  The place to hardcode it is in
metadata Handler classes, one for each type of metadata handling.
The metadata handling classes only need to know about Request objects.
Request and Handler objects don't need to know about Client instances.

-- 

# tavin cole
# if code is law, then Freenet is a crowded theater


_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl

Reply via email to