Garrett, James, thanks for your replies. See, I think that makes more
sense especially from the perspective of single responsiblity.  The
AddEntry method localizes all the validation for adding entries to a
feed.

As for the Axiom bit, I guess that is going to take some more research
and studying to figure out how that needs to implemented in .NET.

Thanks guys,

H

On 9/28/06, Garrett Rooney <[EMAIL PROTECTED]> wrote:
On 9/28/06, Harris Boyce III <[EMAIL PROTECTED]> wrote:
> OK, so why would I do that?  Why would I make the list returned from
> List<?> getEntries() immutable and provide mutator methods when the
> List<?> type supports them implicitly?
>
> Again, sorry if this seems like a college-level discussion, but I do
> struggle with this bit of encapsulation.

Aside from what James said about our current implementation, I could
also see you wanting to have sanity checking on the entries, for
example if there's no feed level author then authors are required on
entries.  If you can just insert an arbitrary entry into the list you
wouldn't have a chance to sanity check it.

Not saying we do that now (I have no idea), but it's one reason to
keep mutations to the underlying data structure under the control of
Abdera's code, not the list implementation.

-garrett

Reply via email to