In light of the recent JS testing video, I’m really curious what Thoughtbot (and everyone else) thinks about JS frameworks for complex UI. Thoughtbot’s been blogging about both and I’d love to hear any usecases that’ve been developed for choosing one over the other.
I’ve been trying to learn Angular for the past few months, just because it seems to be a bit more popular and documentation/tutorials are everywhere. That said, I had another look at Ember again last week and think I’ll be moving towards that soon because it seems to fix all the things I hate about angular: the limitations of ngRouter and all the boilerplate needed to hook into a Rails JSON backend (although Restangular seems to be fixing that). After writing a decent sized angular app, the ember homepage video reminded me of DHH’s rails intro video: ‘Look at all the stuff I’m not doing!’
After doing angular for a bit, I do find it more fun than jQuery and will probably continue to use it in cases when I just need to augment Rails’ views a little. edit: One of the other things I like about angular is ngAnimate and how easy it is to add obnoxious
Also – regardless of which JS frontend – do folks tend to embed the JS app into Rails’ views or separate the two? In my current project, I built the frontend into Rails.root/client and am using gulp to build it into the public directory, for no particular reason other than I wanted to get some experience with gulp and bower.