News for hackers. Stuff that matters.
Re:Asynchronous UIs - the future of web user interfaces by patio11 on Thursday November 17, 2011 @01:33AM (#3246667)
I love the feeling of immediacy users get when using AJAXy applications over render-view-submit-rerender applications, and my users actually comment on this to me (not in as many words, but they say that it is "light", "fast", "easy to use", etc), but the development costs of going the extra mile to asynchronous strikes me as likely to be very high indeed. It already costs me about ~5x development time to do something client side versus server side, just because of how much time wiring up Javascript takes. (And praying it doesn't break, because Javascript is orders of magnitudes harder to test than Ruby is.) The costs for rewriting the entire app to exist simultaneously in the browser and the server, and to magically never fall out of sync even when users do something user-y, scares the heck out of me.

The whole toolchain for reasoning about stuff happening in the browser is still laging a few years behind what we have on the server, which is a related but larger problem. We have Firebug, which gets us truly revolutionary features like "output log messages... in a browser!" and "inspect the internal state of objects in memory... in a browser!" But many of the rest of the cutting edge developments from the 60s and 70s haven't quite made it to the browser yet, or they're not yet at the point where they can be used by mortals. (Selenium: I want to love you, and yet I can't actually use you for anything because you break my brain.)

Re:Asynchronous UIs - the future of web user interfaces by marknutter on Thursday November 17, 2011 @08:25AM (#3247528)
And then some young-gun will come along and create Ruby on Rails for the client side and all these frustrations will be abstracted away. Something being hard to do doesn't mean it shouldn't be pursued.
Re:Asynchronous UIs - the future of web user interfaces by hello_moto on Thursday November 17, 2011 @12:10PM (#3248319)
It's kind of hard to agree with your statement albeit it has some merits.

Rails is a glue of a bunch of things. It's not like it doesn't exist in other environment.

Meanwhile, the state of JS testing is still far behind. Like really really far behind.

Once you get that sorted out, you still left with common set of libraries. Still a long way to go really.

Not to mention that the whole client-side thing is ripe for a change (depending on whom you talk to).

Re:Asynchronous UIs - the future of web user interfaces by retro212 on Thursday November 17, 2011 @05:00AM (#3247110)
Did you try http://www.funcunit.com/ for JavaScript testing?
Re:Asynchronous UIs - the future of web user interfaces by hello_moto on Thursday November 17, 2011 @12:12PM (#3248332)
Is there a better JS unit test framework where I can run it from the console without having to open the browser?

A few CI tools don't work well with the "requires browser to run test" paradigm.

I understand that means there might be class of errors that the no-browser test would not be able to catch but it's still a huge win.