* Lightweight network protocol and server code - the server will
potentially be able to handle much larger number of clients, and the
overall responsiveness of the site will be better
* No page reloads are necessary - great usability improvement!
* Inevitable introduction of some new AJAX functionality will blend
naturally with this approach and will probably require less of the
server logic modification.
The main disadvantage is that it would require programming in, guess
what, Javascript, which is a weakly-typed language, so programming
well in it requires much discipline, thorough unit testing and a
strong nervous system. Are there people bold enough to try it?
I've just thougt of another disadvantage -- this approach will not
work with Javascript-unaware browsers (or those having Javascript
disabled). The support for pure HTML browsers may be important.
This is not great at all. This breaks "back" and "forward" buttons
(unless there is some way to replace their handling, probably there
isn't for every browser) and violates consistency w.r.t. conventional
site structure.
> The main disadvantage is that it would require programming in, guess
> what, Javascript, which is a weakly-typed language, so programming
> well in it requires much discipline, thorough unit testing and a
> strong nervous system. Are there people bold enough to try it?
You aren't supposed to write an OS in it though, it's mostly
straightforward HTML generation. Not much worse than writing HTML by
hand :)
> I've just thougt of another disadvantage -- this approach will not
> work with Javascript-unaware browsers (or those having Javascript
> disabled). The support for pure HTML browsers may be important.
Also ZX Spectrum computers will probably be too slow to execute all
the JavaScript. Supporting them may be important (we must make sure
that, e.g., Ashur is comfortable using the site!)
Well, that is your opinion. That you are so stubbornly supporting it
does not mean that it is necessarily true.
> ZX Spectrum
I'd not compare browsers with JavaScript disabled to ancient
dinosaurs. I heard they are still used. :) There should be a reason
for GMail still providing a plain HTML interface.
> Well, that is your opinion.
That is undeniable truth w.r.t the exact part I quoted. Please read
carefully. There are other valid points of disagreement, but this one,
seriously?!
They change the address on top somehow, I don't know if that involves
reloading the page but it changes.
>> ZX Spectrum
> I'd not compare browsers with JavaScript disabled to ancient
> dinosaurs. I heard they are still used. :) There should be a reason
> for GMail still providing a plain HTML interface.
Well, theoretically that's a valid concern but IMO not really
significant at this point. You could add a pure HTML implementation
later if it proves to be needed, especially if you have a good web-API
this shouldn't be a problem at all.
>
>> Well, that is your opinion.
> That is undeniable truth w.r.t the exact part I quoted. Please read
> carefully. There are other valid points of disagreement, but this one,
> seriously?!
>
Depends on what do you mean by "HTML combinators". I thought you meant
the generation of dynamic parts of the HTML in the server code.
I think I know what you mean, you mean that you can also separate the
data processing and the HTML generation cleanly on the server side,
which is true. What I meant was that this logic gets completely
removed from the server-side code which may be good for the other
reasons you mentioned. Anyway, claiming "undeniable truths" in such
opinionated discussions makes you sound like a zealot :)
> which is true
See? :) My logic is undeniable! (c)
Zealots are cool btw.