[Catalyst] RFC: HTML::Widget / Ajax / Catalyst

Nilson Santos Figueiredo Junior acid06 at gmail.com
Fri May 5 14:58:18 CEST 2006


On 5/5/06, Bryan Roach <opus at b-love.org> wrote:
> That could work, but it also seems quite inefficient for larger forms.
> In my opinion, the DRY principle should never be used to determine the
> way your application functions. You should determine the best way for
> your application to function, and THEN apply DRY to implement that
> functionality efficiently. With a careful design, you can create a
> single-field AJAX validator function and another entire-form validator
> function without ever repeating yourself.

I think that the main benefit of the previously suggested approach is
that, if you're going to the server anyway, then just validate
everything you've to that point, since client-side validation is only
a pre-validation. The overhead is in starting a new AJAX request, it
doesn't really matter if it's a hundred or a thousand bytes.

But I don't really know if this really was the reasoning behind the
original poster's suggestion.

-Nilson Santos F. Jr.



More information about the Catalyst mailing list