abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Elias Torres <el...@torrez.us>
Subject Re: API Refactoring
Date Thu, 22 Jun 2006 22:05:09 GMT

I'd rather we start with less.


James M Snell wrote:
> The key improvement is that this refactoring eliminates a large number
> of fairly redundant methods.  That said, the goal should be to make the
> most common cases as easy as possible.  To that end, having
> setContentAsHtml(string), setContentAsXhtml(string) method makes sense.
>  I'll make sure those stay in.
> - James
> Garrett Rooney wrote:
>> On 6/22/06, James M Snell <jasnell@gmail.com> wrote:
>>> Thoughts? Complaints? Concerns before I check it in?
>> I'm honestly not sure it's a huge improvement in useability.  You end
>> up typing a lot more this way (setFooAsXhtml("blah") ->
>> setFoo(Content.Type.XHTML, "blah")), and instead of distinct methods
>> that do different things you've got methods with the same name that do
>> potentially different things.  How is this a step forward again?
>> -garrett

View raw message