I think there are many pros and cons of both approaches: Pros of client programming: - distribute computation (less server load) - only data is tranferred, not html (less bandwidth usage) - most responsive applications - more flexibility building non-standard interfaces
Cons of client programming - much more difficult to secure (because some of the logic of what is display is client-side). - non-standard interfaces is often what clients want but not always what users want. - you have to program in different languages (client/server). Massimo On Saturday, 17 May 2014 09:33:52 UTC-5, Anthony wrote: > > In general, when looking at angular.js and ractive.js doc, it seems like >> there's a push to move more functionality to the client side. This seems >> counterproductive for a couple of reasons. The clients are far less capable >> than the server ... think cell phone ARM processor with a few MB memory vs. >> server pentium with many GB memory. So isn't pushing more processing onto >> client going to slow down the user experience and eat up mobile device >> battery faster? Isn't it more efficient to do the processing on the server >> and then send a few kb down to client end? >> > > Yes, each client is (generally) less powerful than your server, but your > server has to process requests for *all *clients, whereas each client has > to handle only its own content. It's also faster for the server to return a > small amount of JSON data (which the client can then use to update the DOM) > rather than a full HTML response (i.e., less network traffic). > > Anthony > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.