Would you care to elaborate on this? I'm interested in why.
Long-suffering HN readers can skip all of this (sorry guys) but I expand on this in the following blog posts:
http://intercoolerjs.org/2016/01/18/rescuing-rest.html
http://intercoolerjs.org/2016/02/17/api-churn-vs-security.ht...
http://intercoolerjs.org/2016/05/08/hatoeas-is-for-humans.ht...
For my use cases, discoverability and ad hoc queries just don't apply.
The query issue just depends on how complex your data consumption needs are. The closer they get to levels requiring SQL-levels of expressivity, the more you will need to either churn your API or expose expressivity (and security risk) on the browser side.
In the old days, the way we dealt with changing the UI in another location was by simply replacing the whole page. This actually works pretty well, except for those FOUCs, and we are heading back that way, but now people are starting to do DOM diffs to avoid the blinky-blink. intercooler has a few options for solving it as well (either expanding your replacement target or using dependencies.) I imagine eventually I'll end up adding DOM-merging as an option as well.
Anyway, it's a long conversation.
This will be nice. I was playing with some of the examples on the site and noticed a number of them tended to "jump" a bit when the response was returned.
The way I build web apps is to use intercooler.js (which is built on top of jQuery) for my AJAX and then jQuery, or jQuery-based plugins, for UI needs.
Works great. Yes, the jQuery API has some aspects that haven't aged all that well, but it's a pretty well thought out and through library that provides great tools that should have been baked into all browser environments since the start, and that has a rich ecosystem around it to boot.
The jQuery haters are usually folks who tried to write an SPA with it, which they say, correctly, is a terrible idea. But then, building an SPA is usually a terrible idea as well.