On Tue, Aug 24, 2010 at 8:42 AM, Rob Kinyon <[email protected]> wrote:

>
> The Controller should be declaring an API that the various View(s) can
> consume. Even if you never use it outside a test suite, it is highly
> instructive and helpful to build a second view that transforms hashes
> into JSON. Not only is this very testable without going into the HTML
> parsing, but it forces you to think about what your views are supposed
> to be consuming.
>

Big +1 there.  We have just completed a large new feature set where the app
just exposes a REST-like API with clearly defined json responses and all
client side done in javascript (framework) by a separate team.  Front end
team documents the required requests and responses and tests are written.
 It has really improved the overall development process to have this clearly
defined separation.


-- 
Bill Moseley
[email protected]
_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to