I am always curious how google builts its webapp.

Now that we have GAE, we have an opportunity to build and scale good
webapps.

The logic, we still believe can remain in JS, and when the user
performs an action like save, it is

stored using python. This is the way we do it today in PHP.

Just wanted to know if its the best way to do it.

On Sep 11, 12:39 pm, Yarko Tymciurak <[email protected]> wrote:
> This is a classic MVC question, and where to "put the network boundary"....
>
> For user display layout, the question is somewhat crisp:  put on client (in
> this case, js, css, flash, etc.);
>
> For user interaction, temporary values, incremental activities (e.g. partial
> updates, json) - this is a design decision: what can you afford to lose /
> have delayed validation on / risk not persisting?
>
> For persistent, important data, this is also a somewhat crisp question
> (server,  per-session activities).
>
> So - the short answer is you need to decide, based on what makes the most
> sense, and gives the best performance for your users in their applicaiton.
>
> The old maxim:  economy, performance, reliability - pick any two - comes
> into play.
>
> You have mentioned "performance" from the user interaction perspective (I
> believe).
>
>
>
> On Fri, Sep 11, 2009 at 8:57 AM, Markus <[email protected]> wrote:
>
> > Server calls code in python (like authentication, pdf generation
> > etc.,)
>
> > DOM level logic based on form input, like calculations stick with
> > javascript.
>
> > This way all logic gets loaded once and stays in DOM and variables can
> > be passed to python when necessary.
>
> > Is this the right approach?
>
> > On Sep 11, 9:47 am, Markus <[email protected]> wrote:
> > > Hello
>
> > > We have a tax software built in PHP, PHP is used mainly for server
> > > calls, all the logic is in Javascript files.
>
> > > We are thinking of porting it to Python (web2py) mainly to use GAE
> > > hosting, to handle our peak volume during specific months.
>
> > > My question;
>
> > > Should logic reside in Javascript or Python?
>
> > > When we believe we put the logic in js as we wanted to avoid a lot of
> > > server calls.
>
> > > What are your thoughts?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to