Poll: Where do you assemble your on-the-fly HTML?
On the server, in your chosen language, with access to your data base.
PROS: Complete control, one version
CONS: Have to make a round trip to change it on-the-fly, lots of data sent down the line, more load on server
On the client, using Javascript:
PROS: Much less data needs to be sent, can modify appearance without a round trip
CONS: Need to preload a lot of Javascript, unknown machine and resources, may actually be slower
What am I missing?
10 comments
[ 7.0 ms ] story [ 71.6 ms ] threadWe may need a followup poll on frameworks.
I think I'm beginning to like this poll facility.
I'd worry more about ease of programming than machine constraints. Webapps are rarely CPU-bound, so the overhead of template instantiation isn't likely to make much difference. You definitely want to keep related functionality together - in earlier drafts, I'd generated the HTML for the editor on the server and manipulated it with JQuery. This was a disaster - I could never remember whether functionality was in the HTML template or in the JavaScript, and I had to duplicate some logic in both places.