Hacker News new | ask | show | jobs
by 3pt14159 2381 days ago
I have a couple of questions for you:

1. Was your Rails app solely an API or did it also serve HTML/CSS on first load?

2. Did you build a reusable component framework for your Ember app?

3. Did you follow something like JSON API[0] and use EmberData to hook into it?

I've found that Ember apps with a Rails backend API actually fit together pretty nicely. Don't get me wrong, I like simple. I don't even have a single line of JS on my personal site nor do I use any libraries to generate it (I wrote my own static site compiler), but I've seen JQuery in practice and it makes me unhappy as the app grows because so often things get inconsistent in terms of UI. Plus there seems to be less overall structure of the frontend.

[0] https://jsonapi.org

1 comments

1. Yes, just API/SPA 2. Yes 3. Yes

The decision is purely pragmatic, not about taste, purity, or anything else. If I can develop faster up to the point where I have the budget to worry about those other concerns, that would be a win.