For reasons of testability, we work hard to keep our view (your web) layer very, very thin. It is only responsible to authenticate a request (though this is usually done with middleware), validate and convert incoming args, call the domain with the converted args (hopefully just a single domain method is called), and then convert the return value into something that the template can use (hopefully no conversion required at all on this latter step). In this way, we can move _all_ of our meaningful logic into a domain layer consisting of plain objects where we can easily build unit tests (e.g., our unit tests never have to construct Request and Response objects).
Related, we strictly forbid our view layer communicating directly with our model layer. Perhaps it is a matter of style, but over the years of working with App Engine, we have found that it greatly increases our testability and reduces coupling. j On 12 June, 19:19, "Rodrigo Augosto C." <[email protected]> wrote: > What do you mean with the logic out of view layer? I haven't seen > unnecessary logic on view. > > Thanks for your comment, But this is a open source project to help to > developers and if you want improve it, show us where and how in order to > discuss it. > > Best, > Rodrigo > > > > > > > > > > On Tuesday, June 12, 2012, Jason Collins wrote: > > I like the idea and the initiative! But please move your logic out of > > your view layer and in to a domain layer for the sake of testability! > > > j > > > On Jun 10, 6:59 pm, coto <[email protected]> wrote: > > > I am very happy to announce that the second release of Google App Engine > > Boilerplate > > > is now available for download <http://appengine.protoboard.cl/>. A full > > > change log is available, but here is a brief overview of the new > > features. > > > > Google App Engine Boilerplate <http://appengine.protoboard.cl/> is one > > of > > > the best tools to create your own project on AppEngine and is available > > > completely free of charge under the GPLv2 (or later) license. Enjoy! > > > > Try it online here <http://appengine.protoboard.cl/>. > > > Fork or Watch the project on Github< > >https://github.com/coto/gae-boilerplate/> > > > . > > > Help with opened issues< > >https://github.com/coto/gae-boilerplate/issues?direction=asc&sort=cre...> > > and > > > a lot of developers will thank you. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > >http://groups.google.com/group/google-appengine?hl=en. > > -- > Sent from Gmail Mobile -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
