[Dev] Collections document
pbossut at osafoundation.org
Fri Feb 10 23:45:35 PST 2006
I learned a lot reading this doc but it seems to me that the Collections
design is overly complex. May be this complexity is required but it's
not apparent why. The different kinds of collections are introduced but
without justification of their existence and no apparent structure.
Some questions unanswered:
- Why is the result of set operations (intersection, union and
difference) of a different kind than the base kind AbstractCollection?
- Why do we need this strange InclusionExclusionCollection at all? If it
is the only kind that can be added to the sidebar (and then viewed by
the user) it seems that there's some fundamental flaw in the design, or,
put another way, why can't the base class AbstractCollection be usable
as is in interaction with the user?
- IndexedSelectionCollection seems like a smart hack rather than
something that fits neatly within the concept of Collections. Or may be
it does fit well but it's really not explained what are the advantages
of this design.
I think one can make sense of the whole doc but it needs several rounds
of reading to sink in. A more hierarchical presentation (making clear
what derives from what) and a clear identification of the methods and
attributes specific to each class would make understanding much easier.
John Anderson wrote:
> I recently wrote a developer document describing collections:
> I'd appreciate any feedback you might have.
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> Open Source Applications Foundation "Dev" mailing list
More information about the Dev