[Dbix-class] Read only resultsets
Bill Moseley
moseley at hank.org
Tue Aug 24 18:56:22 GMT 2010
On Tue, Aug 24, 2010 at 8:42 AM, Rob Kinyon <rob.kinyon at gmail.com> 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
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20100824/a1b=
b63b3/attachment.htm
More information about the DBIx-Class
mailing list