25 ms·
Two years ago I built an app using Angular. Of curse using Rails as the back-end. As a whole this wasn't a good experience. A such simple thing like authorizati
by dgregd 12y ago
Two years ago I built an app using Angular. Of curse using Rails as the back-end. As a whole this wasn't a good experience. A such simple thing like authorization took a day or two to implement, solution looked like a one big hack.
However some SPA/Angular features worked beautiful. Two way data binding and local templates allow to build complex forms very easy. Data validation of one to many associations was straightforward. In Rails we have to use accepts_nested_attributes_for. It is so 'nice' that some people want to move nested attributes functionality to an external gem.
The biggest thing Rails is missing: components. There is a discussion today on HN [1] about this. Angular, web components, HTTP2 might really allow to build real object oriented web apps. In Rails there is a view.erb file and that's it [2].
I guess that competition will force developers to build even more user friendly and responsive apps. By that I mean no more separate pages to add a simple record. New apps will allow to click on a record, edit it in place and save with enter. And to do that well we need SPA architecture.
[1] https://news.ycombinator.com/item?id=8671590 https://news.ycombinator.com/item?id=8671590
[2] 10 years ago it was a big thing. At that time typical app is was a bunch of PHP files.