Lurker News
Do you know any websites that have weird UIs ? Something like a ZUI [1] for example.

[1] https://en.wikipedia.org/wiki/Zooming_user_interface

Comments (351) 85 threads

Show all comments

Showing thread 30 of 85

haolez2 replies#
I’ve always liked the approach of http://intercoolerjs.org/.

But I’m not a web dev and I don’t know the real reasons why it didn’t get traction :)

grenoire1 reply#
I think the main reason is because you have to build your entire back-end based on the assumption that you are using intercooler. It requires the responses to be formatted HTML for anything more complex than changing the content text. It ends up making the whole approach much more complex than it is advertised.
NoGravitas1 reply#
No, you really don't. What you do, is you write your back end based on the assumption that you have no JS at all, using a server-side MVC framework like Rails or Django or ASP.NET MVC. Make sure that your controllers and views are well-factored and that you're using partial views where appropriate. It's then almost trivial to apply intercooler to the front-end. In a lot of cases, you don't have to change anything at all in your controllers: just tell intercooler to select out the element you care about from the response (this is most appropriate when a lot of stuff on a page is changing at once, e.g. when you are PJAXing-away a full page refresh). In most others, you usually only have to tell a controller to check whether the request is being made by intercooler, and return a partial view rather than the full view.

The point is that you already have the infrastructure that is generating formatted HTML responses (partial views), and you are now re-using it. If you were trying to write a client-side application from scratch while avoiding the easy path of writing a server-side MVC app, then yeah, I can see how it would be more complex than advertised.
Source: I've built a couple of web apps using intercooler.

haolez1 reply#
Would you still use it today? Sometimes I would like to write simple web apps behind a login page, but the complexity of mainstream frameworks (and their build systems!) makes it not worth it to me.

Continue this thread — 1 reply

radimm1 reply#
More people need to know about it.
haolez#
One of the upsides for prototyping is that you don’t even need a JS build system: simply point your page to their CDN and you are ready to go!