samedi 27 décembre 2014

Server Side vs Javascript for dynamic HTML Rendering (2015)

Today I've been wondering about how many responsibilities should take either server side or client side rendering html, for example in the cases of user navigation, where you can have ui components rendered directly from the client.


I have found this post from 2011:


PHP vs JavaScript For Dynamic HTML Pages


Who asked exactly what I was wondering about, but as kakaxuna suggested these years client side have evolved a lot in the client side, having options like angular.js, backbone, or web components from google, giving javascript more power and making html rendering really simple.


Here quentin sugested to do almost everything you can do on the server side: http://stackoverflow.com/a/6106502/4154650


What I really would like to ask is? Have anything changed from that post? Is still "whatever server can do, do it on the server side" the best approach now?


I would appreciate any response, giving some tips,pros n cons, or recommendations, which could make me or other people with the same question to change and make more efficient the way to build their web architechture.





Aucun commentaire:

Enregistrer un commentaire