3 ms·
REST/HATEOS is an entirely orthogonal issue to the structural issues of the javascript code that he is discussing. So are the models referenced in the image yo
by vidarh 10y ago
REST/HATEOS is an entirely orthogonal issue to the structural issues of the javascript code that he is discussing.
So are the models referenced in the image you link to.
- shoover 10y agoOrthogonal to the structural issues, yes, but not to the original premise, which is the problem of rewriting JavaScript UIs. It seems fair to extend the discussion to ways to avoid writing JavaScript UIs in the first place.
- oldmanjay 10y agoThe best way to avoid writing JS UIs is to invent a time machine and kill Brendan Eich before he puts it in Netscape. People prefer the interactivity that it enables, and no amount of server-side architecture is going to replace that.
- shoover 10y agoI should have said write less JavaScript, not avoid. Still, the tradeoffs of interactivity and client-side architecture required to keep it sane seems like an ok discussion to have.
- the_gastropod 10y agoWhile this is probably true, I think this argument is used to defend things that could totally be handled without any (or with very minimal) javascript. Turbolinks or Pjax will get you most of the way toward the interactivity people are used to with single page JS apps. Of course there are interactions that necessitate more Javascript. In my experience, those cases are the exception, not the rule.