vendredi 3 juillet 2015

Rails 5 with turbolinks 3 or EmberJS

If I want to build a fairly big application using Rails, what is the better solution?

  • Using new Rails5 with turbo-links 3
  • Using Rails5 with almost full app written in EmberJS

If I choose first solution, how will I organize my client side code. A lot of my application will have client side events, forms, submits, .... But my public facing side of application has good SEO, and Rails is awesome in rendering those. Plus I can much faster create this.

Using EmberJS, I lose my SEO, slow app startup, but my client side code gets very well organized. When I use EmberJS, I get structure, conventions and a lot more. My code is beter organized, some parts of application are easier to build.

Of course There is posibility to write my public side of application using Rails5 and turbolinks, and everything else using EmberJS. But when I want to interact with, lets say user that is part of public part, I have to switch to Ember, that has a slow startup (thus EmberJS apps should be SPA(single-page-applications))




Aucun commentaire:

Enregistrer un commentaire